mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-03 09:01:50 -05:00
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 git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1115 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
246e30aec7
commit
0ff247db73
1 changed files with 10 additions and 0 deletions
|
|
@ -24,6 +24,16 @@
|
||||||
|
|
||||||
#include <sys/types.h>
|
#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;
|
typedef struct pa_creds pa_creds;
|
||||||
|
|
||||||
#if defined(SCM_CREDENTIALS)
|
#if defined(SCM_CREDENTIALS)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue