gresource-tool: include sys/mman.h conditionally

It's only needed for code guarded by HAVE_LIBELF, so ifdef the include
as well.
This commit is contained in:
Kalev Lember 2012-02-01 09:10:29 +02:00
parent 3758b41e08
commit 0bb201348f

View File

@ -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>