From: Chun-wei Fan Date: Mon, 17 Oct 2011 09:18:20 +0000 (+0800) Subject: glib/tests/thread.c: Add config guards X-Git-Tag: 2.31.0~26 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e192f45a932b62edcd1d3e2315a5dff20747a346;p=platform%2Fupstream%2Fglib.git 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. --- 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