Commit 0e74e66bd55150f781c78794c4a52e17edcf75e6

Authored by Juan Quintela
Committed by Anthony Liguori
1 parent 71e72a19

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>
Showing 2 changed files with 3 additions and 2 deletions
configure
@@ -1746,7 +1746,6 @@ fi @@ -1746,7 +1746,6 @@ fi
1746 1746
1747 # XXX: suppress that 1747 # XXX: suppress that
1748 if [ "$bsd" = "yes" ] ; then 1748 if [ "$bsd" = "yes" ] ; then
1749 - echo "#define MAP_ANONYMOUS MAP_ANON" >> $config_host_h  
1750 echo "#define CONFIG_BSD 1" >> $config_host_h 1749 echo "#define CONFIG_BSD 1" >> $config_host_h
1751 fi 1750 fi
1752 1751
qemu-common.h
@@ -32,7 +32,9 @@ @@ -32,7 +32,9 @@
32 #ifndef O_BINARY 32 #ifndef O_BINARY
33 #define O_BINARY 0 33 #define O_BINARY 0
34 #endif 34 #endif
35 - 35 +#ifndef MAP_ANONYMOUS
  36 +#define MAP_ANONYMOUS MAP_ANON
  37 +#endif
36 #ifndef ENOMEDIUM 38 #ifndef ENOMEDIUM
37 #define ENOMEDIUM ENODEV 39 #define ENOMEDIUM ENODEV
38 #endif 40 #endif