summaryrefslogtreecommitdiffstats
path: root/src/pulsecore
diff options
context:
space:
mode:
Diffstat (limited to 'src/pulsecore')
-rw-r--r--src/pulsecore/ipacl.c24
1 files changed, 21 insertions, 3 deletions
diff --git a/src/pulsecore/ipacl.c b/src/pulsecore/ipacl.c
index ed5044ef..15b6b3f9 100644
--- a/src/pulsecore/ipacl.c
+++ b/src/pulsecore/ipacl.c
@@ -24,18 +24,36 @@
#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"