]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
Fix redirection of incorrect system headers 78/head
authorJörg Krause <joerg.krause@embedded.rocks>
Thu, 28 May 2015 07:54:46 +0000 (09:54 +0200)
committerJörg Krause <joerg.krause@embedded.rocks>
Thu, 28 May 2015 07:54:46 +0000 (09:54 +0200)
The POSIX correct header include is `<poll.h>` [1] and `<signal.h>`

The glibc silently redirects these incorrect includes, musl libc prints
a warning:
  #warning redirecting incorrect #include <sys/poll.h> to <poll.h>
  #warning redirecting incorrect #include <sys/signal.h> to <signal.h>

[1]
http://pubs.opengroup.org/onlinepubs/7908799/xsh/poll.h.html

[2]
http://pubs.opengroup.org/onlinepubs/7908799/xsh/signal.h.html

player.c
rtsp.c

index 561c3f22eb5176eb1da7d57f28f6ff9894d67ecd..3b28eee2307a7939ddd82aef6ddf933bb379756c 100644 (file)
--- a/player.c
+++ b/player.c
@@ -36,7 +36,7 @@
 #include <pthread.h>
 #include <math.h>
 #include <sys/stat.h>
-#include <sys/signal.h>
+#include <signal.h>
 #include <sys/syslog.h>
 #include <assert.h>
 #include <fcntl.h>
diff --git a/rtsp.c b/rtsp.c
index 91e0728e24574d4ba6ec1148b8a954a51c5f4ce1..379662a2e5c4d37c6f338a12d850871d5f999dd9 100644 (file)
--- a/rtsp.c
+++ b/rtsp.c
@@ -39,7 +39,7 @@
 #include <errno.h>
 #include <fcntl.h>
 #include <pthread.h>
-#include <sys/poll.h>
+#include <poll.h>
 
 #include "config.h"