[glib: 2/4] builder: do not include <unistd.h> on win32
- From: Ryan Lortie <ryanl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 2/4] builder: do not include <unistd.h> on win32
- Date: Fri, 15 Apr 2011 13:31:02 +0000 (UTC)
commit a5dd6fcc4f46a322cc547a5fcfa1b52cbc5ec6d6
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
gvdb-builder.c | 2 ++
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>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]