]> code.delx.au - pulseaudio/commitdiff
Get ACL:s to work on Win32.
authorPierre Ossman <ossman@cendio.se>
Thu, 20 Jul 2006 23:21:57 +0000 (23:21 +0000)
committerPierre Ossman <ossman@cendio.se>
Thu, 20 Jul 2006 23:21:57 +0000 (23:21 +0000)
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1134 fefdeb5f-60dc-0310-8127-8f9354f1896f

src/Makefile.am
src/pulsecore/ipacl.c
src/tests/ipacl-test.c

index 4669fbbe0f8bd66a56fd52160505568e4a3bc946..9eb957d573d97e5968523db8a30894f13745fe08 100644 (file)
@@ -228,7 +228,9 @@ get_binary_name_test_CFLAGS = $(AM_CFLAGS)
 get_binary_name_test_LDADD = $(AM_LDADD) libpulse.la
 get_binary_name_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
 
-ipacl_test_SOURCES = tests/ipacl-test.c pulsecore/ipacl.c pulsecore/ipacl.h
+ipacl_test_SOURCES = tests/ipacl-test.c \
+               pulsecore/ipacl.c pulsecore/ipacl.h \
+               pulsecore/inet_pton.c pulsecore/inet_pton.h
 ipacl_test_CFLAGS = $(AM_CFLAGS)
 ipacl_test_LDADD = $(AM_LDADD) libpulsecore.la
 ipacl_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
@@ -677,7 +679,8 @@ libsocket_server_la_SOURCES = \
 libsocket_server_la_LDFLAGS = -avoid-version
 libsocket_server_la_LIBADD = $(AM_LIBADD) libpulsecore.la libiochannel.la libsocket-util.la $(LIBWRAP_LIBS) $(WINSOCK_LIBS)
 
-libipacl_la_SOURCES = pulsecore/ipacl.h pulsecore/ipacl.c
+libipacl_la_SOURCES = pulsecore/ipacl.h pulsecore/ipacl.c \
+               pulsecore/inet_pton.c pulsecore/inet_pton.h
 libipacl_la_LDFLAGS = -avoid-version
 libipacl_la_LIBADD = $(AM_LIBADD) libpulsecore.la $(WINSOCK_LIBS)
 
index ed5044ef2732b94697e6ce8b0ea5a200a78635c1..15b6b3f9a0629516e705e65e2297794b7df82a23 100644 (file)
 #endif
 
 #include <sys/types.h>
+#include <sys/types.h>
+#include <string.h>
+
+#ifdef HAVE_SYS_SOCKET_H
 #include <sys/socket.h>
+#endif
+#ifdef HAVE_NETINET_IN_H
 #include <netinet/in.h>
+#endif
+#ifdef HAVE_NETINET_IN_SYSTM_H
 #include <netinet/in_systm.h>
+#endif
+#ifdef HAVE_NETINET_IP_H
 #include <netinet/ip.h>
-#include <sys/types.h>
+#endif
+#ifdef HAVE_ARPA_INET_H
 #include <arpa/inet.h>
-#include <string.h>
+#endif
+
+#include "winsock.h"
+
+#include <pulse/xmalloc.h>
 
 #include <pulsecore/core-util.h>
 #include <pulsecore/llist.h>
 #include <pulsecore/log.h>
-#include <pulse/xmalloc.h>
+
+#ifndef HAVE_INET_PTON
+#include "inet_pton.h"
+#endif
 
 #include "ipacl.h"
 
index 8819a6a0f621e9f8cb4e134039d117df04e63427..2566b038e4a4ffaaab3c3b2224113ee64ac998ea 100644 (file)
@@ -1,15 +1,32 @@
 /* $Id$ */
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include <sys/types.h>
+#include <stdio.h>
+#include <unistd.h>
+#include <assert.h>
+#include <string.h>
+
+#ifdef HAVE_SYS_SOCKET_H
 #include <sys/socket.h>
+#endif
+#ifdef HAVE_NETINET_IN_H
 #include <netinet/in.h>
+#endif
+#ifdef HAVE_NETINET_IN_SYSTM_H
 #include <netinet/in_systm.h>
+#endif
+#ifdef HAVE_NETINET_IP_H
 #include <netinet/ip.h>
-#include <stdio.h>
-#include <unistd.h>
+#endif
+#ifdef HAVE_ARPA_INET_H
 #include <arpa/inet.h>
-#include <assert.h>
-#include <string.h>
+#endif
+
+#include "../pulsecore/winsock.h"
 
 #include <pulsecore/ipacl.h>