OSX protability patches from Conrad Parker

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@234 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
Lennart Poettering 2004-09-23 15:57:15 +00:00
parent 03ee5e2b44
commit 9e3890abb4
7 changed files with 7 additions and 2 deletions

View file

@ -33,6 +33,7 @@
#include <stdlib.h>
#include <time.h>
#include <limits.h>
#include <sys/stat.h>
#include "authkey.h"
#include "util.h"

View 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);

View 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"

View file

@ -27,7 +27,6 @@
#include <string.h>
#include <assert.h>
#include <string.h>
#include <malloc.h>
#include <stdio.h>
#include "namereg.h"

View file

@ -26,6 +26,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <unistd.h>
#include <netinet/in.h>
#include "pstream.h"

View 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>

View 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>