[gtk+] Protect inclusion of unistd.h



commit fc122305d085d3f9b33e15a4d3383bf6c06c02ad
Author: Hans Breuer <hans breuer org>
Date:   Sun Jan 2 13:29:23 2011 +0100

    Protect inclusion of unistd.h

 gtk/gtkapplication.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkapplication.c b/gtk/gtkapplication.c
index 59c081b..90d4adf 100644
--- a/gtk/gtkapplication.c
+++ b/gtk/gtkapplication.c
@@ -22,7 +22,9 @@
 #include "config.h"
 
 #include <stdlib.h>
+#ifdef HAVE_UNISTD_H
 #include <unistd.h>
+#endif
 #include <string.h>
 
 #include "gtkapplication.h"



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]