]> code.delx.au - pulseaudio/commitdiff
Replace all references to sys/poll.h with poll.h as that's what POSIX defines.
authorPierre Ossman <ossman@cendio.se>
Wed, 3 Oct 2007 14:41:21 +0000 (14:41 +0000)
committerPierre Ossman <ossman@cendio.se>
Wed, 3 Oct 2007 14:41:21 +0000 (14:41 +0000)
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1925 fefdeb5f-60dc-0310-8127-8f9354f1896f

configure.ac
src/pulse/mainloop.c
src/pulse/thread-mainloop.c

index 0da52533c22e9d784513ee9a6634bf498d6bbf31..b22a990de28d7f54d27b317a56922e1a7f016e51 100644 (file)
@@ -185,7 +185,7 @@ AC_HEADER_STDC
 
 # POSIX
 AC_CHECK_HEADERS([arpa/inet.h glob.h grp.h netdb.h netinet/in.h \
-    netinet/in_systm.h netinet/tcp.h pwd.h sched.h \
+    netinet/in_systm.h netinet/tcp.h poll.h pwd.h sched.h \
     sys/mman.h sys/resource.h sys/select.h sys/socket.h sys/wait.h \
     syslog.h sys/dl.h dlfcn.h])
 AC_CHECK_HEADERS([netinet/ip.h], [], [],
@@ -203,9 +203,6 @@ AC_CHECK_HEADERS([sys/un.h], [HAVE_AF_UNIX=1], [HAVE_AF_UNIX=0])
 AM_CONDITIONAL(HAVE_REGEX, test "x$HAVE_REGEX" = "x1")
 AM_CONDITIONAL(HAVE_AF_UNIX, test "x$HAVE_AF_UNIX" = "x1")
 
-# XPG4-UNIX
-AC_CHECK_HEADERS([sys/poll.h])
-
 # Linux
 AC_CHECK_HEADERS([linux/input.h], [HAVE_EVDEV=1], [HAVE_EVDEV=0])
 
index bab8eb5c5259588dcc24d9029581797f399f1de3..ad4e4e97df5473fa19281294a4416882a25c8170 100644 (file)
@@ -34,8 +34,8 @@
 #include <fcntl.h>
 #include <errno.h>
 
-#ifdef HAVE_SYS_POLL_H
-#include <sys/poll.h>
+#ifdef HAVE_POLL_H
+#include <poll.h>
 #else
 #include <pulsecore/poll.h>
 #endif
index 3068570538c91ac82d77622e75d136a28ed0d00e..9dd47ae327a8f2511b2517089d8d15768ee48d19 100644 (file)
@@ -29,8 +29,8 @@
 #include <signal.h>
 #include <stdio.h>
 
-#ifdef HAVE_SYS_POLL_H
-#include <sys/poll.h>
+#ifdef HAVE_POLL_H
+#include <poll.h>
 #else
 #include <pulsecore/poll.h>
 #endif