meson: fix botched compile check conversions
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 16 Nov 2021 07:28:29 +0000 (08:28 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 16 Nov 2021 09:37:50 +0000 (10:37 +0100)
commit6a23f8190fe953546ce50142d037588fb972f8ce
treec1b82bde31e6c6069cdc33e89f04ff249265c1cf
parent42f6c9179be4401974dd3a75ee72defd16b5092d
meson: fix botched compile check conversions

Fix a bunch of incorrect conversions from configure to Meson, which result
in different outcomes with --extra-cflags=-Werror.

pthread_setname_np needs "#define _GNU_SOURCE" on Linux (which I am using
also for the non-Linux check, so that it correctly fails with an error
about having too few parameters).

Fix struct checks to use has_type instead of has_symbol, and "#define
_GNU_SOURCE" too in the case of struct mmsghdr.

Remove an apostrophe that ended up at the end of a #include line.

Reported-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
meson.build