From 3c94299b0ff1c8e1b0b06bedd73b1b725e631d8a Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 11 Apr 2011 12:57:19 -0400 Subject: [PATCH] Don't include unistd.h unconditionally It doesn't exist on all platforms. Partial fix for bug 647341. --- gio/glib-compile-schemas.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/gio/glib-compile-schemas.c b/gio/glib-compile-schemas.c index d2c3f77..a301dff 100644 --- a/gio/glib-compile-schemas.c +++ b/gio/glib-compile-schemas.c @@ -24,12 +24,15 @@ #include "config.h" #include -#include +#include + #include -#include #include +#include -#include +#ifdef HAVE_UNISTD_H +#include +#endif #include "gvdb/gvdb-builder.h" #include "strinfo.c" -- 2.7.4