From e192f45a932b62edcd1d3e2315a5dff20747a346 Mon Sep 17 00:00:00 2001 From: Chun-wei Fan Date: Mon, 17 Oct 2011 17:18:20 +0800 Subject: [PATCH] glib/tests/thread.c: Add config guards Not all systems come with unistd.h and sys/time.h, so use config guards on them so that they are only included when available. --- glib/tests/thread.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/glib/tests/thread.c b/glib/tests/thread.c index 2c7c741..a614c27 100644 --- a/glib/tests/thread.c +++ b/glib/tests/thread.c @@ -22,9 +22,13 @@ #include +#ifdef HAVE_SYS_TIME_H #include +#endif #include +#ifdef HAVE_UNISTD_H #include +#endif #include -- 2.7.4