builder: do not include <unistd.h> on win32
authorRyan Lortie <desrt@desrt.ca>
Fri, 15 Apr 2011 13:27:38 +0000 (09:27 -0400)
committerRyan Lortie <desrt@desrt.ca>
Fri, 15 Apr 2011 13:27:38 +0000 (09:27 -0400)
Spotted by Kean Johnston <kean.johnston@gmail.com>.

https://mail.gnome.org/archives/gtk-devel-list/2011-April/msg00010.html

gvdb-builder.c

index 4b48d80..f65ca7d 100644 (file)
@@ -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>