[pulseaudio-commits] r1115 - /trunk/src/pulsecore/creds.h

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


Author: lennart
Date: Thu Jul 20 02:52:44 2006
New Revision: 1115

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=1115&root=pulseaudio&view=rev
Log:
undo r1111 in some way: include sys/socket.h and sys/un.h but wrap it in #ifdef
HAVE_xxx_H. This should be safe because config.h should be the first included
header in all .c files and creds.h is never included by any external tools


Modified:
    trunk/src/pulsecore/creds.h

Modified: trunk/src/pulsecore/creds.h
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/pulsecore/creds.h?rev=1115&root=pulseaudio&r1=1114&r2=1115&view=diff
==============================================================================
--- trunk/src/pulsecore/creds.h (original)
+++ trunk/src/pulsecore/creds.h Thu Jul 20 02:52:44 2006
@@ -24,6 +24,16 @@
 
 #include <sys/types.h>
 
+/* config.h must be included before this file */
+
+#ifdef HAVE_SYS_SOCKET_H
+#include <sys/socket.h>
+#endif
+
+#ifdef HAVE_SYS_UN_H
+#include <sys/un.h>
+#endif
+
 typedef struct pa_creds pa_creds;
 
 #if defined(SCM_CREDENTIALS)




More information about the pulseaudio-commits mailing list