diff options
author | David CARLIER | 2020-07-13 15:36:09 +0200 |
---|---|---|
committer | Peter Maydell | 2020-07-13 15:36:09 +0200 |
commit | 2a4b472c3c8fbbb95b104f9b7699a5ceeeb5b006 (patch) | |
tree | 8cb4423c038abc2029cb736d6b2108e155836d24 /util | |
parent | build: Check that mlockall() exists (diff) | |
download | qemu-2a4b472c3c8fbbb95b104f9b7699a5ceeeb5b006.tar.gz qemu-2a4b472c3c8fbbb95b104f9b7699a5ceeeb5b006.tar.xz qemu-2a4b472c3c8fbbb95b104f9b7699a5ceeeb5b006.zip |
osdep.h: Always include <sys/signal.h> if it exists
Regularize our handling of <sys/signal.h>: currently we include it in
osdep.h, but only for OpenBSD, and we include it without an ifdef
guard in a couple of C files. This causes problems for Haiku, which
doesn't have that header.
Instead, check in configure whether sys/signal.h exists, and if it
does then always include it from osdep.h.
Signed-off-by: David Carlier <devnexen@gmail.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 20200703145614.16684-5-peter.maydell@linaro.org
[PMM: Expanded commit message; rename to HAVE_SYS_SIGNAL_H]
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'util')
-rw-r--r-- | util/oslib-posix.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/util/oslib-posix.c b/util/oslib-posix.c index 39ddc77c85..7ad9195c44 100644 --- a/util/oslib-posix.c +++ b/util/oslib-posix.c @@ -38,7 +38,6 @@ #include "qemu/sockets.h" #include "qemu/thread.h" #include <libgen.h> -#include <sys/signal.h> #include "qemu/cutils.h" #ifdef CONFIG_LINUX |