]> code.delx.au - pulseaudio/commitdiff
Clean up <poll.h> includes
authorMaarten Bosmans <mkbosmans@gmail.com>
Tue, 4 Jan 2011 10:17:53 +0000 (11:17 +0100)
committerMaarten Bosmans <mkbosmans@gmail.com>
Thu, 17 Feb 2011 10:58:21 +0000 (11:58 +0100)
Instead <pulsecore/poll.h> should be included.  That file includes poll.h on
platform where it is appropriate.  Also remove some unnecessary <ioctl.h>
includes.

src/daemon/main.c
src/modules/bluetooth/module-bluetooth-device.c
src/modules/module-esound-sink.c
src/modules/module-pipe-sink.c
src/modules/module-pipe-source.c
src/modules/module-sine-source.c
src/modules/oss/module-oss.c
src/modules/rtp/module-rtp-recv.c
src/pulse/thread-mainloop.c
src/pulsecore/lock-autospawn.c

index cad6f70d7bc136d13f365953bb6e77be26613c74..0db794bcfeccf4b1cca5e06b1a09614467d3c34d 100644 (file)
 #include <sys/mman.h>
 #endif
 
-#ifdef HAVE_SYS_IOCTL_H
-#include <sys/ioctl.h>
-#endif
-
 #ifdef HAVE_PWD_H
 #include <pwd.h>
 #endif
index 6d31c1eb792bf7c7592b4620f43883d2b578f8e0..dc09ffca740c4d6587864010fcefcd6b6fee627b 100644 (file)
@@ -25,8 +25,6 @@
 
 #include <string.h>
 #include <errno.h>
-#include <poll.h>
-#include <sys/ioctl.h>
 #include <linux/sockios.h>
 #include <arpa/inet.h>
 
@@ -44,6 +42,7 @@
 #include <pulsecore/socket-util.h>
 #include <pulsecore/thread.h>
 #include <pulsecore/thread-mq.h>
+#include <pulsecore/poll.h>
 #include <pulsecore/rtpoll.h>
 #include <pulsecore/time-smoother.h>
 #include <pulsecore/namereg.h>
index 02541e62dc06c0e8f71ef4fec62db966db1afb40..0d04fff71c614c1d5ea7f89b47cdfbfc0cce7b78 100644 (file)
@@ -31,7 +31,6 @@
 #include <fcntl.h>
 #include <unistd.h>
 #include <limits.h>
-#include <poll.h>
 #include <sys/socket.h>
 #include <netinet/in.h>
 #include <netinet/tcp.h>
@@ -60,6 +59,8 @@
 #include <pulsecore/thread.h>
 #include <pulsecore/time-smoother.h>
 #include <pulsecore/socket-util.h>
+#include <pulsecore/rtpoll.h>
+#include <pulsecore/poll.h>
 
 #include "module-esound-sink-symdef.h"
 
index e26cbf646046bc03bef053d8027f9d9e3783b8b3..4ed91aae6676fa4d9c24d179bfa6d05beb27c61c 100644 (file)
@@ -32,7 +32,6 @@
 #include <unistd.h>
 #include <limits.h>
 #include <sys/ioctl.h>
-#include <poll.h>
 
 #ifdef HAVE_SYS_FILIO_H
 #include <sys/filio.h>
@@ -49,6 +48,7 @@
 #include <pulsecore/thread.h>
 #include <pulsecore/thread-mq.h>
 #include <pulsecore/rtpoll.h>
+#include <pulsecore/poll.h>
 
 #include "module-pipe-sink-symdef.h"
 
index 1a6607df7bba3310edfd25101ef0993d83232839..c50536efae80478299bdc89633345494b8361979 100644 (file)
@@ -32,7 +32,6 @@
 #include <unistd.h>
 #include <limits.h>
 #include <sys/ioctl.h>
-#include <sys/poll.h>
 
 #ifdef HAVE_SYS_FILIO_H
 #include <sys/filio.h>
@@ -49,6 +48,7 @@
 #include <pulsecore/thread.h>
 #include <pulsecore/thread-mq.h>
 #include <pulsecore/rtpoll.h>
+#include <pulsecore/poll.h>
 
 #include "module-pipe-source-symdef.h"
 
index c66099c034dde3863ef55121b36f79ddd01a8911..955834f1dcf82d3e8da441ec9633a1c34b1557fc 100644 (file)
@@ -31,7 +31,6 @@
 #include <fcntl.h>
 #include <unistd.h>
 #include <limits.h>
-#include <sys/ioctl.h>
 
 #include <pulse/rtclock.h>
 #include <pulse/timeval.h>
@@ -47,7 +46,6 @@
 #include <pulsecore/thread.h>
 #include <pulsecore/thread-mq.h>
 #include <pulsecore/rtpoll.h>
-#include <pulsecore/poll.h>
 
 #include "module-sine-source-symdef.h"
 
index ba9b99e0db69084e57c5b953b5aa6b880023eedf..c9dc4e7a3e5d8e978eea6a36eef5633fb63e1353 100644 (file)
@@ -53,7 +53,6 @@
 #include <unistd.h>
 #include <limits.h>
 #include <signal.h>
-#include <poll.h>
 
 #include <pulse/xmalloc.h>
 #include <pulse/util.h>
@@ -70,6 +69,7 @@
 #include <pulsecore/macro.h>
 #include <pulsecore/thread-mq.h>
 #include <pulsecore/rtpoll.h>
+#include <pulsecore/poll.h>
 
 #if defined(__NetBSD__) && !defined(SNDCTL_DSP_GETODELAY)
 #include <sys/audioio.h>
index b59519fbbf630b31c0df0fea169f828ed9f41674..a920e66e81bbc23e599f25f2d48ae53ac6085724 100644 (file)
@@ -31,7 +31,6 @@
 #include <errno.h>
 #include <string.h>
 #include <unistd.h>
-#include <poll.h>
 
 #include <pulse/rtclock.h>
 #include <pulse/timeval.h>
@@ -54,6 +53,7 @@
 #include <pulsecore/atomic.h>
 #include <pulsecore/socket-util.h>
 #include <pulsecore/once.h>
+#include <pulsecore/poll.h>
 
 #include "module-rtp-recv-symdef.h"
 
index c3cf49c4d7841af52287c082340acf27dc1670f9..d8c82c8cd12b00c6deeefec1eb27ebe17e466710 100644 (file)
 #include <signal.h>
 #include <stdio.h>
 
-#ifdef HAVE_POLL_H
-#include <poll.h>
-#else
-#include <pulsecore/poll.h>
-#endif
-
 #include <pulse/xmalloc.h>
 #include <pulse/mainloop.h>
 #include <pulse/i18n.h>
@@ -46,6 +40,7 @@
 #include <pulsecore/thread.h>
 #include <pulsecore/mutex.h>
 #include <pulsecore/macro.h>
+#include <pulsecore/poll.h>
 
 #include "thread-mainloop.h"
 
index 422f5eb2837297c6a7f306da8435e86e6066475e..b5150573d16dcd089d0c793576b3b249dba1662a 100644 (file)
@@ -26,7 +26,6 @@
 #include <fcntl.h>
 #include <errno.h>
 #include <string.h>
-#include <sys/poll.h>
 #include <signal.h>
 #include <pthread.h>