[glib/glib-2-28] builder: do not include <unistd.h> on win32



commit 8c24ea5f49164722357a666c1e4a88016069656f
Author: Ryan Lortie <desrt desrt ca>
Date:   Fri Apr 15 09:27:38 2011 -0400

    builder: do not include <unistd.h> on win32
    
    Spotted by Kean Johnston <kean johnston gmail com>.
    
    https://mail.gnome.org/archives/gtk-devel-list/2011-April/msg00010.html

 gio/gvdb/gvdb-builder.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gio/gvdb/gvdb-builder.c b/gio/gvdb/gvdb-builder.c
index 4b48d80..f65ca7d 100644
--- a/gio/gvdb/gvdb-builder.c
+++ b/gio/gvdb/gvdb-builder.c
@@ -24,7 +24,9 @@
 
 #include <glib.h>
 #include <fcntl.h>
+#if !defined(G_OS_WIN32) || !defined(_MSC_VER)
 #include <unistd.h>
+#endif
 #include <string.h>
 
 



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