summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Lortie <desrt@desrt.ca>2011-04-15 09:27:38 -0400
committerRyan Lortie <desrt@desrt.ca>2011-04-15 09:27:38 -0400
commita5dd6fcc4f46a322cc547a5fcfa1b52cbc5ec6d6 (patch)
treedd3a6da7ccef8ba707d11401dc46797ff5df436b
parent3812559659e645be223e34f12040c2d58fdc875c (diff)
downloaddconf-a5dd6fcc4f46a322cc547a5fcfa1b52cbc5ec6d6.tar.gz
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
-rw-r--r--gvdb-builder.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gvdb-builder.c b/gvdb-builder.c
index 4b48d80..f65ca7d 100644
--- a/gvdb-builder.c
+++ b/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>