mirror of
https://github.com/mii443/qemu.git
synced 2025-09-01 14:49:23 +00:00
os-posix: include sys/mman.h
qemu/osdep.h checks whether MAP_ANONYMOUS is defined, but this check is bogus without a previous inclusion of sys/mman.h. Include it in sysemu/os-posix.h and remove it from everywhere else. Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
@ -105,6 +105,8 @@ for f in "$@"; do
|
||||
*include/qemu/osdep.h | \
|
||||
*include/qemu/compiler.h | \
|
||||
*include/glib-compat.h | \
|
||||
*include/sysemu/os-posix.h | \
|
||||
*include/sysemu/os-win32.h | \
|
||||
*include/standard-headers/ )
|
||||
# Removing include lines from osdep.h itself would be counterproductive.
|
||||
echo "SKIPPING $f (special case header)"
|
||||
@ -145,6 +147,7 @@ for f in "$@"; do
|
||||
<stdlib.h> <stdio.h> <string.h> <strings.h> <inttypes.h>
|
||||
<limits.h> <unistd.h> <time.h> <ctype.h> <errno.h> <fcntl.h>
|
||||
<sys/stat.h> <sys/time.h> <assert.h> <signal.h> <glib.h>
|
||||
<sys/stat.h> <sys/time.h> <assert.h> <signal.h> <glib.h> <sys/mman.h>
|
||||
"sysemu/os-posix.h, sysemu/os-win32.h "glib-compat.h"
|
||||
"qemu/typedefs.h"
|
||||
))' "$f"
|
||||
|
Reference in New Issue
Block a user