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 bbc45c3784d78307884d5956d9a091f1e4aed5ff..9b60506ffa1a25476ccc93870a94b3d3bbf4bfbc 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 2a45ad37c31d70d0ce0262188d4332c9a5ae6b02..0e55528df2caffca711e9c789727876c80280912 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 46522d9b5a2873c2e0b9c8d32751d3d09dad2787..17c491dea1ddd9bb043ae07530d17cff2edeefd3 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 5791a3e45b508067e2f292f6dc5c7c9047198246..e2f65efd31584227657ce74b250fa2d9386792d8 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 b0de9e8c6d4570060e781f73693c44852501fd69..5fe2b4e75791e3f712390d6e5584501faf3e629f 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 39ae87b53c789752e725c15b932c4cad4028b433..bbebdab3470ddb7d531ab8dd6620a81dd5fba72d 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 cc132dbb1656b83541dc4315def85f5923473922..7148654a2cbebac32330d585467f282d9126f6e4 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>