From: Chun-wei Fan Date: Tue, 24 Jul 2012 07:56:59 +0000 (+0800) Subject: girffi.c: Don't include unistd.h unconditionally X-Git-Tag: GOBJECT_INTROSPECTION_1_35_2~42 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b28cf37dbfe2182dd18daaccc1f6bda66dd92560;p=platform%2Fupstream%2Fgobject-introspection.git girffi.c: Don't include unistd.h unconditionally It does not exist on all platforms https://bugzilla.gnome.org/show_bug.cgi?id=681820 --- 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 #include +#ifdef HAVE_UNISTD_H #include +#endif #include "girffi.h" #include "girepository.h" #include "girepository-private.h"