diff options
author | Juan Quintela <quintela@redhat.com> | 2009-07-27 16:12:57 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-07-27 14:09:20 -0500 |
commit | 0e74e66bd55150f781c78794c4a52e17edcf75e6 (patch) | |
tree | da4ce684a65d65696da17d929033ed11d4a9c0d0 | |
parent | 71e72a19bafda97c9e97b089499fdc050e96a631 (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-x | configure | 1 | ||||
-rw-r--r-- | qemu-common.h | 4 |
2 files changed, 3 insertions, 2 deletions
@@ -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 |