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