From 0e74e66bd55150f781c78794c4a52e17edcf75e6 Mon Sep 17 00:00:00 2001 From: Juan Quintela Date: Mon, 27 Jul 2009 16:12:57 +0200 Subject: [PATCH] define MAP_ANONYMOUS if it is not defined in qemu-common.h Signed-off-by: Juan Quintela Signed-off-by: Anthony Liguori --- configure | 1 - qemu-common.h | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 62605a763b..c9f6ac9b81 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 6a15f89348..671c0fce1a 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 -- 2.11.0