qemu-e2k/include
Andrew Deason 8900c204df util/osdep: Avoid madvise proto on modern Solaris
On older Solaris releases (before Solaris 11), we didn't get a
prototype for madvise, and so util/osdep.c provides its own prototype.
Some time between the public Solaris 11.4 release and Solaris 11.4.42
CBE, we started getting an madvise prototype that looks like this:

    extern int madvise(void *, size_t, int);

which conflicts with the prototype in util/osdeps.c. Instead of always
declaring this prototype, check if we're missing the madvise()
prototype, and only declare it ourselves if the prototype is missing.
Move the prototype to include/qemu/osdep.h, the normal place to handle
platform-specific header quirks.

The 'missing_madvise_proto' meson check contains an obviously wrong
prototype for madvise. So if that code compiles and links, we must be
missing the actual prototype for madvise.

Signed-off-by: Andrew Deason <adeason@sinenomine.net>
Message-id: 20220316035227.3702-2-adeason@sinenomine.net
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
2022-03-18 11:31:41 +00:00
..
authz
block block: pass desired TLS hostname through from block driver client 2022-03-07 15:58:42 -06:00
chardev
crypto
disas
exec softmmu: List CPU types again 2022-03-16 08:43:10 +01:00
fpu
hw hw/arm/xlnx-zynqmp: Connect the ZynqMP APU Control 2022-03-18 11:31:20 +00:00
io
libdecnumber
migration migration: Remove load_state_old and minimum_version_id_old 2022-03-02 18:20:45 +00:00
monitor mos6522: add "info via" HMP command for debugging 2022-03-09 09:28:28 +00:00
net
qapi
qemu util/osdep: Avoid madvise proto on modern Solaris 2022-03-18 11:31:41 +00:00
qom
scsi
semihosting
standard-headers headers: Add pvpanic.h 2022-03-06 05:08:23 -05:00
sysemu softmmu: List CPU types again 2022-03-16 08:43:10 +01:00
tcg tcg: Add opcodes for vector nand, nor, eqv 2022-03-04 08:50:41 -10:00
ui ui/dbus: fix texture sharing 2022-03-15 12:54:55 +04:00
user
elf.h
glib-compat.h docs/devel: more documentation on the use of suffixes 2022-01-18 16:42:42 +00:00
qemu-common.h util: Make qemu_oom_check() a static function 2022-03-07 13:09:20 +00:00
qemu-io.h