OSX protability patches from Conrad Parker
authorLennart Poettering <lennart@poettering.net>
Thu, 23 Sep 2004 15:57:15 +0000 (15:57 +0000)
committerLennart Poettering <lennart@poettering.net>
Thu, 23 Sep 2004 15:57:15 +0000 (15:57 +0000)
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@234 fefdeb5f-60dc-0310-8127-8f9354f1896f

polyp/authkey.c
polyp/main.c
polyp/module-protocol-stub.c
polyp/namereg.c
polyp/pstream.c
polyp/tagstruct.c
polyp/util.c

index bbc45c3..9b60506 100644 (file)
@@ -33,6 +33,7 @@
 #include <stdlib.h>
 #include <time.h>
 #include <limits.h>
+#include <sys/stat.h>
 
 #include "authkey.h"
 #include "util.h"
index 2a45ad3..0e55528 100644 (file)
@@ -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);
index 46522d9..17c491d 100644 (file)
@@ -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"
index 5791a3e..e2f65ef 100644 (file)
@@ -27,7 +27,6 @@
 #include <string.h>
 #include <assert.h>
 #include <string.h>
-#include <malloc.h>
 #include <stdio.h>
 
 #include "namereg.h"
index b0de9e8..5fe2b4e 100644 (file)
@@ -26,6 +26,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <assert.h>
+#include <unistd.h>
 #include <netinet/in.h>
 
 #include "pstream.h"
index 39ae87b..bbebdab 100644 (file)
@@ -25,6 +25,8 @@
 
 #include <stdlib.h>
 #include <string.h>
+#include <unistd.h>
+#include <sys/time.h>
 #include <netinet/in.h>
 #include <assert.h>
 
index cc132db..7148654 100644 (file)
@@ -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>