diff options
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | meson.build | 3 | ||||
-rw-r--r-- | tests/pixbuf-randomly-modified.c | 4 |
3 files changed, 7 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index 76c8adb63..100a6e677 100644 --- a/configure.ac +++ b/configure.ac @@ -358,7 +358,7 @@ LIBS="$LIBS $GLIB_LIBS" AC_CHECK_FUNCS(bind_textdomain_codeset) LIBS=$gtk_save_LIBS -AC_CHECK_HEADERS(unistd.h sys/resource.h) +AC_CHECK_HEADERS(unistd.h sys/resource.h sys/time.h) AC_CHECK_FUNCS(setrlimit) saved_cflags="$CFLAGS" diff --git a/meson.build b/meson.build index 5006d76e2..13ac26c5b 100644 --- a/meson.build +++ b/meson.build @@ -61,7 +61,8 @@ gdk_pixbuf_conf = configuration_data() check_headers = [ 'unistd.h', - 'sys/resource.h' + 'sys/resource.h', + 'sys/time.h' ] foreach h: check_headers diff --git a/tests/pixbuf-randomly-modified.c b/tests/pixbuf-randomly-modified.c index 9f482e45a..8b380a097 100644 --- a/tests/pixbuf-randomly-modified.c +++ b/tests/pixbuf-randomly-modified.c @@ -24,7 +24,11 @@ #include <stdlib.h> #include <time.h> #include <string.h> + +#ifdef HAVE_SYS_TIME_H #include <sys/time.h> +#endif + #ifdef HAVE_SYS_RESOURCE_H #include <sys/resource.h> #endif |