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:
3758b41
)
gresource-tool: include sys/mman.h conditionally
author
Kalev Lember
<kalevlember@gmail.com>
Wed, 1 Feb 2012 07:10:29 +0000
(09:10 +0200)
committer
Kalev Lember
<kalevlember@gmail.com>
Wed, 1 Feb 2012 13:53:54 +0000
(15:53 +0200)
It's only needed for code guarded by HAVE_LIBELF, so ifdef the include
as well.
gio/gresource-tool.c
patch
|
blob
|
history
diff --git
a/gio/gresource-tool.c
b/gio/gresource-tool.c
index 58aea8de7ebb3265ead88f329fdf091faf723d8d..4bbc688bbf862040672ef26a2481b3bfa72998e6 100644
(file)
--- a/
gio/gresource-tool.c
+++ b/
gio/gresource-tool.c
@@
-28,12
+28,12
@@
#include <sys/stat.h>
#include <fcntl.h>
#include <string.h>
-#include <sys/mman.h>
#include <locale.h>
#ifdef HAVE_LIBELF
#include <libelf.h>
#include <gelf.h>
+#include <sys/mman.h>
#endif
#include <gio/gio.h>