girffi.c: Don't include unistd.h unconditionally
authorChun-wei Fan <fanchunwei@src.gnome.org>
Tue, 24 Jul 2012 07:56:59 +0000 (15:56 +0800)
committerColin Walters <walters@verbum.org>
Sat, 27 Oct 2012 16:06:09 +0000 (12:06 -0400)
It does not exist on all platforms

https://bugzilla.gnome.org/show_bug.cgi?id=681820

girepository/girffi.c

index ec710c3..f4c80ea 100644 (file)
@@ -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"