[glib] gresource-tool: include sys/mman.h conditionally



commit 0bb201348f7fad556197bec979fc488354ac8a9d
Author: Kalev Lember <kalevlember gmail com>
Date:   Wed Feb 1 09:10:29 2012 +0200

    gresource-tool: include sys/mman.h conditionally
    
    It's only needed for code guarded by HAVE_LIBELF, so ifdef the include
    as well.

 gio/gresource-tool.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gio/gresource-tool.c b/gio/gresource-tool.c
index 58aea8d..4bbc688 100644
--- 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>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]