diff options
author | Chun-wei Fan <fanchunwei@src.gnome.org> | 2017-08-15 08:59:44 +0800 |
---|---|---|
committer | Chun-wei Fan <fanchunwei@src.gnome.org> | 2017-08-17 15:05:53 +0800 |
commit | dc85e7d27a7436fb7e3f3a806a74050613ded933 (patch) | |
tree | c04e101268847755a497913ec1e055c2d4d554ef /tests | |
parent | e041ecd308de6352191767b4fc9592a4b564ffd8 (diff) | |
download | gdk-pixbuf-dc85e7d27a7436fb7e3f3a806a74050613ded933.tar.gz |
build: Check for sys/time.h
sys/time.h is not a header that is provided by all compilers that we
support, so we need to check for it and include it conditionally so that
things will build normally, especially as Meson builds will build all
the test programs as well.
https://bugzilla.gnome.org/show_bug.cgi?id=785767
Diffstat (limited to 'tests')
-rw-r--r-- | tests/pixbuf-randomly-modified.c | 4 |
1 files changed, 4 insertions, 0 deletions
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 |