gresource-tool: include sys/mman.h conditionally
authorKalev Lember <kalevlember@gmail.com>
Wed, 1 Feb 2012 07:10:29 +0000 (09:10 +0200)
committerKalev 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

index 58aea8de7ebb3265ead88f329fdf091faf723d8d..4bbc688bbf862040672ef26a2481b3bfa72998e6 100644 (file)
 #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>