aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2009-07-27 16:12:57 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-07-27 14:09:20 -0500
commit0e74e66bd55150f781c78794c4a52e17edcf75e6 (patch)
treeda4ce684a65d65696da17d929033ed11d4a9c0d0
parent71e72a19bafda97c9e97b089499fdc050e96a631 (diff)
define MAP_ANONYMOUS if it is not defined in qemu-common.h
Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
-rwxr-xr-xconfigure1
-rw-r--r--qemu-common.h4
2 files changed, 3 insertions, 2 deletions
diff --git a/configure b/configure
index 62605a763..c9f6ac9b8 100755
--- a/configure
+++ b/configure
@@ -1746,7 +1746,6 @@ fi
# XXX: suppress that
if [ "$bsd" = "yes" ] ; then
- echo "#define MAP_ANONYMOUS MAP_ANON" >> $config_host_h
echo "#define CONFIG_BSD 1" >> $config_host_h
fi
diff --git a/qemu-common.h b/qemu-common.h
index 6a15f8934..671c0fce1 100644
--- a/qemu-common.h
+++ b/qemu-common.h
@@ -32,7 +32,9 @@
#ifndef O_BINARY
#define O_BINARY 0
#endif
-
+#ifndef MAP_ANONYMOUS
+#define MAP_ANONYMOUS MAP_ANON
+#endif
#ifndef ENOMEDIUM
#define ENOMEDIUM ENODEV
#endif