[glib] glib/tests/thread.c: Add config guards
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] glib/tests/thread.c: Add config guards
- Date: Mon, 17 Oct 2011 09:00:39 +0000 (UTC)
commit e192f45a932b62edcd1d3e2315a5dff20747a346
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Mon Oct 17 17:18:20 2011 +0800
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 files changed, 4 insertions(+), 0 deletions(-)
---
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 <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>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]