Fixes to include signal.h
authorTimo Teräs <timo.teras@iki.fi>
Fri, 3 Jun 2016 05:57:02 +0000 (08:57 +0300)
committerTimo Teräs <timo.teras@iki.fi>
Wed, 8 Jun 2016 17:37:08 +0000 (20:37 +0300)
POSIX defines signal.h. sys/signal.h should not be used as it is
c-library internal header which may or may not exist. Notably with
musl it generates warning of being incorrect.

Change-Id: Ia56b0aa1d84b5c590114867b1b384a624f39a6fc

17 files changed:
addons/chan_ooh323.h
apps/app_dahdiras.c
apps/app_dial.c
apps/app_queue.c
channels/chan_console.c
channels/chan_dahdi.c
channels/chan_iax2.c
channels/chan_mgcp.c
channels/chan_motif.c
channels/chan_sip.c
channels/chan_skinny.c
main/cli.c
main/features.c
main/http.c
main/tcptls.c
pbx/pbx_dundi.c
res/res_musiconhold.c

index 89caaff..1279a22 100644 (file)
@@ -38,7 +38,6 @@
 #include <errno.h>
 #include <fcntl.h>
 #include <signal.h>
-#include <sys/signal.h>
 
 #include "asterisk/lock.h"
 #include "asterisk/channel.h"
index e8bdad0..51921a9 100644 (file)
@@ -36,12 +36,7 @@ ASTERISK_REGISTER_FILE()
 
 #include <sys/ioctl.h>
 #include <sys/wait.h>
-#ifdef __linux__
-#include <sys/signal.h>
-#else
 #include <signal.h>
-#endif /* __linux__ */
-
 #include <fcntl.h>
 
 #include <dahdi/user.h>
index 5e034d3..f05521b 100644 (file)
@@ -35,7 +35,7 @@
 ASTERISK_REGISTER_FILE()
 
 #include <sys/time.h>
-#include <sys/signal.h>
+#include <signal.h>
 #include <sys/stat.h>
 #include <netinet/in.h>
 
index 165924e..cd545d2 100644 (file)
@@ -72,7 +72,7 @@
 ASTERISK_REGISTER_FILE()
 
 #include <sys/time.h>
-#include <sys/signal.h>
+#include <signal.h>
 #include <netinet/in.h>
 #include <ctype.h>
 
index 9fdecd7..bd849ad 100644 (file)
@@ -64,7 +64,7 @@
 
 ASTERISK_REGISTER_FILE()
 
-#include <sys/signal.h>  /* SIGURG */
+#include <signal.h>  /* SIGURG */
 
 #include <portaudio.h>
 
index 2d92343..e4b7c0e 100644 (file)
@@ -58,10 +58,8 @@ ASTERISK_REGISTER_FILE()
 
 #if defined(__NetBSD__) || defined(__FreeBSD__)
 #include <pthread.h>
-#include <signal.h>
-#else
-#include <sys/signal.h>
 #endif
+#include <signal.h>
 #include <sys/stat.h>
 #include <math.h>
 
index af44de9..721da9a 100644 (file)
@@ -68,7 +68,6 @@ ASTERISK_REGISTER_FILE()
 #include <netinet/in_systm.h>
 #include <netinet/ip.h>
 #include <sys/time.h>
-#include <sys/signal.h>
 #include <signal.h>
 #include <strings.h>
 #include <netdb.h>
index 8714ddb..6df5d3f 100644 (file)
@@ -47,7 +47,6 @@ ASTERISK_REGISTER_FILE()
 #include <net/if.h>
 #include <fcntl.h>
 #include <netdb.h>
-#include <sys/signal.h>
 #include <signal.h>
 #include <netinet/in.h>
 #include <netinet/in_systm.h>
index 118d1d9..0c71092 100644 (file)
@@ -51,7 +51,7 @@ ASTERISK_REGISTER_FILE()
 #include <netdb.h>
 #include <netinet/in.h>
 #include <arpa/inet.h>
-#include <sys/signal.h>
+#include <signal.h>
 #include <iksemel.h>
 #include <pthread.h>
 
index 19f8aa3..fc26e7e 100644 (file)
 ASTERISK_REGISTER_FILE()
 
 #include <signal.h>
-#include <sys/signal.h>
 #include <regex.h>
 #include <inttypes.h>
 
index 76990d1..fb6e619 100644 (file)
@@ -49,7 +49,6 @@ ASTERISK_REGISTER_FILE()
 #include <fcntl.h>
 #include <netdb.h>
 #include <arpa/inet.h>
-#include <sys/signal.h>
 #include <signal.h>
 #include <ctype.h>
 
index f2bedc9..8af20b6 100644 (file)
@@ -42,7 +42,6 @@ ASTERISK_REGISTER_FILE()
 
 #include "asterisk/_private.h"
 #include "asterisk/paths.h"    /* use ast_config_AST_MODULE_DIR */
-#include <sys/signal.h>
 #include <signal.h>
 #include <ctype.h>
 #include <regex.h>
index 7dfe4cd..6806fe7 100644 (file)
@@ -46,7 +46,7 @@ ASTERISK_REGISTER_FILE()
 #include <pthread.h>
 #include <signal.h>
 #include <sys/time.h>
-#include <sys/signal.h>
+#include <signal.h>
 #include <netinet/in.h>
 
 #include "asterisk/lock.h"
index 5ec94a7..a836282 100644 (file)
@@ -49,7 +49,7 @@ ASTERISK_REGISTER_FILE()
 #include <time.h>
 #include <sys/time.h>
 #include <sys/stat.h>
-#include <sys/signal.h>
+#include <signal.h>
 #include <fcntl.h>
 
 #include "asterisk/paths.h"    /* use ast_config_AST_DATA_DIR */
index f56e0aa..046501b 100644 (file)
@@ -38,7 +38,6 @@ ASTERISK_REGISTER_FILE()
 #endif
 
 #include <signal.h>
-#include <sys/signal.h>
 
 #include "asterisk/compat.h"
 #include "asterisk/tcptls.h"
index 10495ac..94b71a0 100644 (file)
@@ -43,7 +43,7 @@ ASTERISK_REGISTER_FILE()
 #include "asterisk/network.h"
 #include <sys/ioctl.h>
 #include <zlib.h>
-#include <sys/signal.h>
+#include <signal.h>
 #include <pthread.h>
 #include <net/if.h>
 
index f124d58..3c7199e 100644 (file)
@@ -44,7 +44,7 @@ ASTERISK_REGISTER_FILE()
 #include <ctype.h>
 #include <signal.h>
 #include <sys/time.h>
-#include <sys/signal.h>
+#include <signal.h>
 #include <netinet/in.h>
 #include <sys/stat.h>
 #include <dirent.h>