summaryrefslogtreecommitdiffstats
path: root/src/pulsecore/parseaddr.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pulsecore/parseaddr.c')
-rw-r--r--src/pulsecore/parseaddr.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/pulsecore/parseaddr.c b/src/pulsecore/parseaddr.c
index 44cd9a05..99fdcbf4 100644
--- a/src/pulsecore/parseaddr.c
+++ b/src/pulsecore/parseaddr.c
@@ -25,14 +25,17 @@
#include <string.h>
#include <stdlib.h>
+
+#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
-#include <sys/socket.h>
+#endif
#include <pulse/xmalloc.h>
#include <pulse/util.h>
#include <pulsecore/core-util.h>
#include <pulsecore/macro.h>
+#include <pulsecore/inet_pton.h>
#include "parseaddr.h"