Clean up <poll.h> includes

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.
This commit is contained in:
Maarten Bosmans 2011-01-04 11:17:53 +01:00
parent 8d12ab9e63
commit d6d9fb295d
10 changed files with 8 additions and 20 deletions

View file

@ -43,10 +43,6 @@
#include <sys/mman.h> #include <sys/mman.h>
#endif #endif
#ifdef HAVE_SYS_IOCTL_H
#include <sys/ioctl.h>
#endif
#ifdef HAVE_PWD_H #ifdef HAVE_PWD_H
#include <pwd.h> #include <pwd.h>
#endif #endif

View file

@ -25,8 +25,6 @@
#include <string.h> #include <string.h>
#include <errno.h> #include <errno.h>
#include <poll.h>
#include <sys/ioctl.h>
#include <linux/sockios.h> #include <linux/sockios.h>
#include <arpa/inet.h> #include <arpa/inet.h>
@ -44,6 +42,7 @@
#include <pulsecore/socket-util.h> #include <pulsecore/socket-util.h>
#include <pulsecore/thread.h> #include <pulsecore/thread.h>
#include <pulsecore/thread-mq.h> #include <pulsecore/thread-mq.h>
#include <pulsecore/poll.h>
#include <pulsecore/rtpoll.h> #include <pulsecore/rtpoll.h>
#include <pulsecore/time-smoother.h> #include <pulsecore/time-smoother.h>
#include <pulsecore/namereg.h> #include <pulsecore/namereg.h>

View file

@ -31,7 +31,6 @@
#include <fcntl.h> #include <fcntl.h>
#include <unistd.h> #include <unistd.h>
#include <limits.h> #include <limits.h>
#include <poll.h>
#include <sys/socket.h> #include <sys/socket.h>
#include <netinet/in.h> #include <netinet/in.h>
#include <netinet/tcp.h> #include <netinet/tcp.h>
@ -60,6 +59,8 @@
#include <pulsecore/thread.h> #include <pulsecore/thread.h>
#include <pulsecore/time-smoother.h> #include <pulsecore/time-smoother.h>
#include <pulsecore/socket-util.h> #include <pulsecore/socket-util.h>
#include <pulsecore/rtpoll.h>
#include <pulsecore/poll.h>
#include "module-esound-sink-symdef.h" #include "module-esound-sink-symdef.h"

View file

@ -32,7 +32,6 @@
#include <unistd.h> #include <unistd.h>
#include <limits.h> #include <limits.h>
#include <sys/ioctl.h> #include <sys/ioctl.h>
#include <poll.h>
#ifdef HAVE_SYS_FILIO_H #ifdef HAVE_SYS_FILIO_H
#include <sys/filio.h> #include <sys/filio.h>
@ -49,6 +48,7 @@
#include <pulsecore/thread.h> #include <pulsecore/thread.h>
#include <pulsecore/thread-mq.h> #include <pulsecore/thread-mq.h>
#include <pulsecore/rtpoll.h> #include <pulsecore/rtpoll.h>
#include <pulsecore/poll.h>
#include "module-pipe-sink-symdef.h" #include "module-pipe-sink-symdef.h"

View file

@ -32,7 +32,6 @@
#include <unistd.h> #include <unistd.h>
#include <limits.h> #include <limits.h>
#include <sys/ioctl.h> #include <sys/ioctl.h>
#include <sys/poll.h>
#ifdef HAVE_SYS_FILIO_H #ifdef HAVE_SYS_FILIO_H
#include <sys/filio.h> #include <sys/filio.h>
@ -49,6 +48,7 @@
#include <pulsecore/thread.h> #include <pulsecore/thread.h>
#include <pulsecore/thread-mq.h> #include <pulsecore/thread-mq.h>
#include <pulsecore/rtpoll.h> #include <pulsecore/rtpoll.h>
#include <pulsecore/poll.h>
#include "module-pipe-source-symdef.h" #include "module-pipe-source-symdef.h"

View file

@ -31,7 +31,6 @@
#include <fcntl.h> #include <fcntl.h>
#include <unistd.h> #include <unistd.h>
#include <limits.h> #include <limits.h>
#include <sys/ioctl.h>
#include <pulse/rtclock.h> #include <pulse/rtclock.h>
#include <pulse/timeval.h> #include <pulse/timeval.h>
@ -47,7 +46,6 @@
#include <pulsecore/thread.h> #include <pulsecore/thread.h>
#include <pulsecore/thread-mq.h> #include <pulsecore/thread-mq.h>
#include <pulsecore/rtpoll.h> #include <pulsecore/rtpoll.h>
#include <pulsecore/poll.h>
#include "module-sine-source-symdef.h" #include "module-sine-source-symdef.h"

View file

@ -53,7 +53,6 @@
#include <unistd.h> #include <unistd.h>
#include <limits.h> #include <limits.h>
#include <signal.h> #include <signal.h>
#include <poll.h>
#include <pulse/xmalloc.h> #include <pulse/xmalloc.h>
#include <pulse/util.h> #include <pulse/util.h>
@ -70,6 +69,7 @@
#include <pulsecore/macro.h> #include <pulsecore/macro.h>
#include <pulsecore/thread-mq.h> #include <pulsecore/thread-mq.h>
#include <pulsecore/rtpoll.h> #include <pulsecore/rtpoll.h>
#include <pulsecore/poll.h>
#if defined(__NetBSD__) && !defined(SNDCTL_DSP_GETODELAY) #if defined(__NetBSD__) && !defined(SNDCTL_DSP_GETODELAY)
#include <sys/audioio.h> #include <sys/audioio.h>

View file

@ -31,7 +31,6 @@
#include <errno.h> #include <errno.h>
#include <string.h> #include <string.h>
#include <unistd.h> #include <unistd.h>
#include <poll.h>
#include <pulse/rtclock.h> #include <pulse/rtclock.h>
#include <pulse/timeval.h> #include <pulse/timeval.h>
@ -54,6 +53,7 @@
#include <pulsecore/atomic.h> #include <pulsecore/atomic.h>
#include <pulsecore/socket-util.h> #include <pulsecore/socket-util.h>
#include <pulsecore/once.h> #include <pulsecore/once.h>
#include <pulsecore/poll.h>
#include "module-rtp-recv-symdef.h" #include "module-rtp-recv-symdef.h"

View file

@ -31,12 +31,6 @@
#include <signal.h> #include <signal.h>
#include <stdio.h> #include <stdio.h>
#ifdef HAVE_POLL_H
#include <poll.h>
#else
#include <pulsecore/poll.h>
#endif
#include <pulse/xmalloc.h> #include <pulse/xmalloc.h>
#include <pulse/mainloop.h> #include <pulse/mainloop.h>
#include <pulse/i18n.h> #include <pulse/i18n.h>
@ -46,6 +40,7 @@
#include <pulsecore/thread.h> #include <pulsecore/thread.h>
#include <pulsecore/mutex.h> #include <pulsecore/mutex.h>
#include <pulsecore/macro.h> #include <pulsecore/macro.h>
#include <pulsecore/poll.h>
#include "thread-mainloop.h" #include "thread-mainloop.h"

View file

@ -26,7 +26,6 @@
#include <fcntl.h> #include <fcntl.h>
#include <errno.h> #include <errno.h>
#include <string.h> #include <string.h>
#include <sys/poll.h>
#include <signal.h> #include <signal.h>
#include <pthread.h> #include <pthread.h>