summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2004-09-23 15:57:15 +0000
committerLennart Poettering <lennart@poettering.net>2004-09-23 15:57:15 +0000
commit9e3890abb4c8427d69b0be751d516b4c1ff6118d (patch)
treea7b63433861c83880874c465479d4149bd0dc65f
parent03ee5e2b445becf823dc4dd3db1599849e8c6c06 (diff)
OSX protability patches from Conrad Parker
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@234 fefdeb5f-60dc-0310-8127-8f9354f1896f
-rw-r--r--polyp/authkey.c1
-rw-r--r--polyp/main.c2
-rw-r--r--polyp/module-protocol-stub.c1
-rw-r--r--polyp/namereg.c1
-rw-r--r--polyp/pstream.c1
-rw-r--r--polyp/tagstruct.c2
-rw-r--r--polyp/util.c1
7 files changed, 7 insertions, 2 deletions
diff --git a/polyp/authkey.c b/polyp/authkey.c
index bbc45c37..9b60506f 100644
--- a/polyp/authkey.c
+++ b/polyp/authkey.c
@@ -33,6 +33,7 @@
#include <stdlib.h>
#include <time.h>
#include <limits.h>
+#include <sys/stat.h>
#include "authkey.h"
#include "util.h"
diff --git a/polyp/main.c b/polyp/main.c
index 2a45ad37..0e55528d 100644
--- a/polyp/main.c
+++ b/polyp/main.c
@@ -188,7 +188,7 @@ int main(int argc, char *argv[]) {
pa_log_set_target(PA_LOG_SYSLOG, NULL);
setsid();
- setpgrp();
+ setpgid(0,0);
close(0);
close(1);
diff --git a/polyp/module-protocol-stub.c b/polyp/module-protocol-stub.c
index 46522d9b..17c491de 100644
--- a/polyp/module-protocol-stub.c
+++ b/polyp/module-protocol-stub.c
@@ -29,6 +29,7 @@
#include <assert.h>
#include <arpa/inet.h>
#include <unistd.h>
+#include <netinet/in.h>
#include "module.h"
#include "socket-server.h"
diff --git a/polyp/namereg.c b/polyp/namereg.c
index 5791a3e4..e2f65efd 100644
--- a/polyp/namereg.c
+++ b/polyp/namereg.c
@@ -27,7 +27,6 @@
#include <string.h>
#include <assert.h>
#include <string.h>
-#include <malloc.h>
#include <stdio.h>
#include "namereg.h"
diff --git a/polyp/pstream.c b/polyp/pstream.c
index b0de9e8c..5fe2b4e7 100644
--- a/polyp/pstream.c
+++ b/polyp/pstream.c
@@ -26,6 +26,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
+#include <unistd.h>
#include <netinet/in.h>
#include "pstream.h"
diff --git a/polyp/tagstruct.c b/polyp/tagstruct.c
index 39ae87b5..bbebdab3 100644
--- a/polyp/tagstruct.c
+++ b/polyp/tagstruct.c
@@ -25,6 +25,8 @@
#include <stdlib.h>
#include <string.h>
+#include <unistd.h>
+#include <sys/time.h>
#include <netinet/in.h>
#include <assert.h>
diff --git a/polyp/util.c b/polyp/util.c
index cc132dbb..7148654a 100644
--- a/polyp/util.c
+++ b/polyp/util.c
@@ -33,6 +33,7 @@
#include <fcntl.h>
#include <unistd.h>
#include <sys/types.h>
+#include <sys/stat.h>
#include <pwd.h>
#include <signal.h>
#include <pthread.h>