summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2006-01-05 19:11:23 +0000
committerPierre Ossman <ossman@cendio.se>2006-01-05 19:11:23 +0000
commit4deeaefbe116f6374b3cdb7a4186bb1bf7afefe2 (patch)
tree203de025d32f043c7c1a05d5c9309f33c49ee8a4
parent14474ae4528456b6be243d75116a6080df50399e (diff)
Don't include sys/socket.h in the header when we do not need to.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/ossman@384 fefdeb5f-60dc-0310-8127-8f9354f1896f
-rw-r--r--polyp/socket-client.c1
-rw-r--r--polyp/socket-client.h3
2 files changed, 3 insertions, 1 deletions
diff --git a/polyp/socket-client.c b/polyp/socket-client.c
index a55fd4ba..58bc7e80 100644
--- a/polyp/socket-client.c
+++ b/polyp/socket-client.c
@@ -31,6 +31,7 @@
#include <string.h>
#include <assert.h>
#include <stdlib.h>
+#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
diff --git a/polyp/socket-client.h b/polyp/socket-client.h
index 9c3e0b37..b8c73ed8 100644
--- a/polyp/socket-client.h
+++ b/polyp/socket-client.h
@@ -23,11 +23,12 @@
***/
#include <inttypes.h>
-#include <sys/socket.h>
#include "mainloop-api.h"
#include "iochannel.h"
+struct sockaddr;
+
struct pa_socket_client;
struct pa_socket_client* pa_socket_client_new_ipv4(struct pa_mainloop_api *m, uint32_t address, uint16_t port);