summaryrefslogtreecommitdiffstats
path: root/src/pulsecore/pstream.c
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2006-07-20 00:13:12 +0000
committerPierre Ossman <ossman@cendio.se>2006-07-20 00:13:12 +0000
commit7ba93ebae21742522bfe430e229a859370a888d1 (patch)
treee5361e718fd2465417cedc85201f2fbeaf7978a4 /src/pulsecore/pstream.c
parent2ad69389d4a584a1058474341ee959c6cfc070a2 (diff)
Protect platform dependent headers with ifdefs.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1112 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src/pulsecore/pstream.c')
-rw-r--r--src/pulsecore/pstream.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/pulsecore/pstream.c b/src/pulsecore/pstream.c
index de5fa43e..7096d65a 100644
--- a/src/pulsecore/pstream.c
+++ b/src/pulsecore/pstream.c
@@ -27,9 +27,13 @@
#include <stdlib.h>
#include <assert.h>
#include <unistd.h>
+
+#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
+#endif
+#ifdef HAVE_SYS_UN_H
#include <sys/un.h>
-
+#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif