From c0cb758eec848dcbc779bf75a26b49727218e380 Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Wed, 13 Jan 2021 13:56:00 -0800 Subject: osdep.h: Remove include Prior to 2a4b472c3c, sys/signal.h was only included on OpenBSD (apart from two .c files). The POSIX standard location for this header is just and in fact, OpenBSD's signal.h includes sys/signal.h itself. Unconditionally including on musl causes warnings for just about every source file: /usr/include/sys/signal.h:1:2: warning: #warning redirecting incorrect #include to [-Wcpp] 1 | #warning redirecting incorrect #include to | ^~~~~~~ Since there don't seem to be any platforms which require including in addition to , and some platforms like Haiku lack it completely, just remove it. Tested building on OpenBSD after removing this include. Signed-off-by: Michael Forney Tested-by: John Snow Reviewed-by: Eric Blake Reviewed-by: Thomas Huth Message-Id: <20210113215600.16100-1-mforney@mforney.org> Signed-off-by: Thomas Huth --- include/qemu/osdep.h | 4 ---- 1 file changed, 4 deletions(-) (limited to 'include/qemu') diff --git a/include/qemu/osdep.h b/include/qemu/osdep.h index f9ec8c84e9..a434382c58 100644 --- a/include/qemu/osdep.h +++ b/include/qemu/osdep.h @@ -104,10 +104,6 @@ extern int daemon(int, int); #include #include -#ifdef HAVE_SYS_SIGNAL_H -#include -#endif - #ifndef _WIN32 #include #else -- cgit v1.2.3-55-g7522