projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9d04861
)
Don't include unistd.h unconditionally
author
Matthias Clasen
<mclasen@redhat.com>
Mon, 11 Apr 2011 16:57:19 +0000
(12:57 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Mon, 11 Apr 2011 16:57:19 +0000
(12:57 -0400)
It doesn't exist on all platforms. Partial fix for bug 647341.
gio/glib-compile-schemas.c
patch
|
blob
|
history
diff --git
a/gio/glib-compile-schemas.c
b/gio/glib-compile-schemas.c
index d2c3f77b452205fe26f1e1e7d52ef88f6a7aee3e..a301dff9a071258acb4d98d5514feb2edb7ccfa8 100644
(file)
--- a/
gio/glib-compile-schemas.c
+++ b/
gio/glib-compile-schemas.c
@@
-24,12
+24,15
@@
#include "config.h"
#include <gstdio.h>
-#include <locale.h>
+#include <gi18n.h>
+
#include <string.h>
-#include <unistd.h>
#include <stdio.h>
+#include <locale.h>
-#include <gi18n.h>
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
#include "gvdb/gvdb-builder.h"
#include "strinfo.c"