diff options
author | Chun-wei Fan <fanchunwei@src.gnome.org> | 2011-10-17 17:18:20 +0800 |
---|---|---|
committer | Chun-wei Fan <fanchunwei@src.gnome.org> | 2011-10-17 17:18:20 +0800 |
commit | e192f45a932b62edcd1d3e2315a5dff20747a346 (patch) | |
tree | 395b4ce60f404853758f073dfadc8cc19d6cdb11 | |
parent | 1bfa7e7e860feb9e825ad0a4ae340aca7afe51a6 (diff) |
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.
-rw-r--r-- | glib/tests/thread.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/glib/tests/thread.c b/glib/tests/thread.c index 2c7c741c3..a614c2792 100644 --- a/glib/tests/thread.c +++ b/glib/tests/thread.c @@ -22,9 +22,13 @@ #include <config.h> +#ifdef HAVE_SYS_TIME_H #include <sys/time.h> +#endif #include <sys/types.h> +#ifdef HAVE_UNISTD_H #include <unistd.h> +#endif #include <glib.h> |