projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1bfa7e7
)
glib/tests/thread.c: Add config guards
author
Chun-wei Fan
<fanchunwei@src.gnome.org>
Mon, 17 Oct 2011 09:18:20 +0000
(17:18 +0800)
committer
Chun-wei Fan
<fanchunwei@src.gnome.org>
Mon, 17 Oct 2011 09:18:20 +0000
(17:18 +0800)
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
patch
|
blob
|
history
diff --git
a/glib/tests/thread.c
b/glib/tests/thread.c
index
2c7c741
..
a614c27
100644
(file)
--- 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>