[gtk+] gtk/gtkapplication.c: Don't Include unistd.h Unconditionally



commit adb0d2adac43987c062787c3b8dbbe5c99696cc2
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Thu Dec 26 16:15:10 2013 +0800

    gtk/gtkapplication.c: Don't Include unistd.h Unconditionally
    
    This header, which is not universally available, is accidently made to be
    included unconditionally during the refactoring of gtkapplication.c,
    so restore the #ifdef check.

 gtk/gtkapplication.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkapplication.c b/gtk/gtkapplication.c
index 46540ab..ea5211b 100644
--- a/gtk/gtkapplication.c
+++ b/gtk/gtkapplication.c
@@ -23,7 +23,11 @@
 #include "gtkapplication.h"
 
 #include <stdlib.h>
+
+#ifdef HAVE_UNISTD_H
 #include <unistd.h>
+#endif
+
 #include <string.h>
 
 #include "gtkapplicationprivate.h"


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