]> code.delx.au - pulseaudio/commitdiff
fix a few autoconf warnings (patch by Flameeyes)
authorLennart Poettering <lennart@poettering.net>
Sat, 2 Sep 2006 12:45:53 +0000 (12:45 +0000)
committerLennart Poettering <lennart@poettering.net>
Sat, 2 Sep 2006 12:45:53 +0000 (12:45 +0000)
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1362 fefdeb5f-60dc-0310-8127-8f9354f1896f

configure.ac

index 7d85b32ae2437237b676030b11c1669f1e4ae16e..48b86cd31dcebb5f4266a5a29f92b0fa4bdeecdc 100644 (file)
@@ -143,9 +143,18 @@ AC_HEADER_STDC
 
 # POSIX
 AC_CHECK_HEADERS([arpa/inet.h glob.h grp.h netdb.h netinet/in.h \
-    netinet/in_systm.h netinet/ip.h netinet/tcp.h pwd.h sched.h \
+    netinet/in_systm.h netinet/tcp.h pwd.h sched.h \
     sys/mman.h sys/resource.h sys/select.h sys/socket.h sys/wait.h \
     syslog.h])
+AC_CHECK_HEADERS([netinet/ip.h], [], [],
+                [#include <sys/types.h>
+                 #if HAVE_NETINET_IN_H
+                 # include <netinet/in.h>
+                 #endif
+                 #if HAVE_NETINET_IN_SYSTM_H
+                 # include <netinet/in_systm.h>
+                 #endif
+                ])
 AC_CHECK_HEADERS([regex.h], [HAVE_REGEX=1], [HAVE_REGEX=0])
 AC_CHECK_HEADERS([sys/un.h], [HAVE_AF_UNIX=1], [HAVE_AF_UNIX=0])