diff options
author | Pierre Ossman <ossman@cendio.se> | 2006-07-20 00:13:12 +0000 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2006-07-20 00:13:12 +0000 |
commit | 7ba93ebae21742522bfe430e229a859370a888d1 (patch) | |
tree | e5361e718fd2465417cedc85201f2fbeaf7978a4 /src | |
parent | 2ad69389d4a584a1058474341ee959c6cfc070a2 (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')
-rw-r--r-- | src/pulse/context.c | 5 | ||||
-rw-r--r-- | src/pulsecore/pstream.c | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/src/pulse/context.c b/src/pulse/context.c index 0150204c..efc1685b 100644 --- a/src/pulse/context.c +++ b/src/pulse/context.c @@ -33,8 +33,6 @@ #include <errno.h> #include <signal.h> #include <limits.h> -#include <sys/socket.h> -#include <sys/un.h> #ifdef HAVE_SYS_WAIT_H #include <sys/wait.h> @@ -43,6 +41,9 @@ #ifdef HAVE_SYS_SOCKET_H #include <sys/socket.h> #endif +#ifdef HAVE_SYS_UN_H +#include <sys/un.h> +#endif #ifdef HAVE_NETDB_H #include <netdb.h> #endif 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 |