[gobject-introspection] girffi.c: Don't include unistd.h unconditionally
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection] girffi.c: Don't include unistd.h unconditionally
- Date: Sat, 27 Oct 2012 16:26:09 +0000 (UTC)
commit b28cf37dbfe2182dd18daaccc1f6bda66dd92560
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Tue Jul 24 15:56:59 2012 +0800
girffi.c: Don't include unistd.h unconditionally
It does not exist on all platforms
https://bugzilla.gnome.org/show_bug.cgi?id=681820
girepository/girffi.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/girepository/girffi.c b/girepository/girffi.c
index ec710c3..f4c80ea 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"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]