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>
This commit is contained in:
parent
71e72a19ba
commit
0e74e66bd5
1
configure
vendored
1
configure
vendored
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user