summaryrefslogtreecommitdiffstats
path: root/loader/ext.c
diff options
context:
space:
mode:
Diffstat (limited to 'loader/ext.c')
-rw-r--r--loader/ext.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/loader/ext.c b/loader/ext.c
index 4ef4580bdc..4984861590 100644
--- a/loader/ext.c
+++ b/loader/ext.c
@@ -18,7 +18,9 @@
#include <malloc.h>
#endif
#include <unistd.h>
+#ifdef HAVE_SYS_MMAN_H
#include <sys/mman.h>
+#endif
#include <errno.h>
#include <fcntl.h>
#include <string.h>