From dc85e7d27a7436fb7e3f3a806a74050613ded933 Mon Sep 17 00:00:00 2001 From: Chun-wei Fan Date: Tue, 15 Aug 2017 08:59:44 +0800 Subject: 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 --- tests/pixbuf-randomly-modified.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests') 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 #include #include + +#ifdef HAVE_SYS_TIME_H #include +#endif + #ifdef HAVE_SYS_RESOURCE_H #include #endif -- cgit v1.2.1