summaryrefslogtreecommitdiff
path: root/girepository
diff options
context:
space:
mode:
authorChun-wei Fan <fanchunwei@src.gnome.org>2012-07-24 15:56:59 +0800
committerColin Walters <walters@verbum.org>2012-10-27 12:06:09 -0400
commitb28cf37dbfe2182dd18daaccc1f6bda66dd92560 (patch)
tree487e9e14f645f5cabcab5962ad303d65e0ec0307 /girepository
parenteccd4e379ac345cbf6f67b8b764491bf8e756e10 (diff)
downloadgobject-introspection-b28cf37dbfe2182dd18daaccc1f6bda66dd92560.tar.gz
girffi.c: Don't include unistd.h unconditionally
It does not exist on all platforms https://bugzilla.gnome.org/show_bug.cgi?id=681820
Diffstat (limited to 'girepository')
-rw-r--r--girepository/girffi.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/girepository/girffi.c b/girepository/girffi.c
index ec710c37..f4c80eaa 100644
--- a/girepository/girffi.c
+++ b/girepository/girffi.c
@@ -26,7 +26,9 @@
#include <errno.h>
#include <string.h>
+#ifdef HAVE_UNISTD_H
#include <unistd.h>
+#endif
#include "girffi.h"
#include "girepository.h"
#include "girepository-private.h"