[pulseaudio-commits] r1112 - in /trunk/src: pulse/context.c pulsecore/pstream.c

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Wed Jul 19 17:13:13 PDT 2006


Author: ossman
Date: Thu Jul 20 02:13:12 2006
New Revision: 1112

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=1112&root=pulseaudio&view=rev
Log:
Protect platform dependent headers with ifdefs.

Modified:
    trunk/src/pulse/context.c
    trunk/src/pulsecore/pstream.c

Modified: trunk/src/pulse/context.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/pulse/context.c?rev=1112&root=pulseaudio&r1=1111&r2=1112&view=diff
==============================================================================
--- trunk/src/pulse/context.c (original)
+++ trunk/src/pulse/context.c Thu Jul 20 02:13:12 2006
@@ -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>
@@ -42,6 +40,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>

Modified: trunk/src/pulsecore/pstream.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/pulsecore/pstream.c?rev=1112&root=pulseaudio&r1=1111&r2=1112&view=diff
==============================================================================
--- trunk/src/pulsecore/pstream.c (original)
+++ trunk/src/pulsecore/pstream.c Thu Jul 20 02:13:12 2006
@@ -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




More information about the pulseaudio-commits mailing list