[Top][All Lists]

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

[Qemu-devel] [PATCH] os-posix: include sys/mman.h

From: Paolo Bonzini
Subject: [Qemu-devel] [PATCH] os-posix: include sys/mman.h
Date: Mon, 6 Jun 2016 14:02:06 +0200

qemu/osdep.h checks whether MAP_ANONYMOUS is defined, but this
check is bogus without a previous include of sys/mman.h.

Signed-off-by: Paolo Bonzini <address@hidden>
 include/sysemu/os-posix.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/sysemu/os-posix.h b/include/sysemu/os-posix.h
index 07e3e5a..9c7dfdf 100644
--- a/include/sysemu/os-posix.h
+++ b/include/sysemu/os-posix.h
@@ -26,6 +26,7 @@
 #ifndef QEMU_OS_POSIX_H
 #define QEMU_OS_POSIX_H
+#include <sys/mman.h>
 #include <sys/socket.h>
 #include <netinet/in.h>
 #include <netinet/tcp.h>

reply via email to

[Prev in Thread] Current Thread [Next in Thread]