summaryrefslogtreecommitdiff
path: root/osdep.c
diff options
context:
space:
mode:
Diffstat (limited to 'osdep.c')
-rw-r--r--osdep.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/osdep.c b/osdep.c
index f843e562f1..aa061a90ad 100644
--- a/osdep.c
+++ b/osdep.c
@@ -25,8 +25,6 @@
#include <stdio.h>
#include <stdarg.h>
#include <string.h>
-#include <sys/mman.h>
-#include <sys/ipc.h>
#include <errno.h>
#include <unistd.h>
@@ -34,6 +32,9 @@
#if defined(__i386__) && !defined(CONFIG_SOFTMMU) && !defined(CONFIG_USER_ONLY)
+#include <sys/mman.h>
+#include <sys/ipc.h>
+
/* When not using soft mmu, libc independant functions are needed for
the CPU core because it needs to use alternates stacks and
libc/thread incompatibles settings */