From 9e3890abb4c8427d69b0be751d516b4c1ff6118d Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 23 Sep 2004 15:57:15 +0000 Subject: [PATCH] OSX protability patches from Conrad Parker git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@234 fefdeb5f-60dc-0310-8127-8f9354f1896f --- polyp/authkey.c | 1 + polyp/main.c | 2 +- polyp/module-protocol-stub.c | 1 + polyp/namereg.c | 1 - polyp/pstream.c | 1 + polyp/tagstruct.c | 2 ++ polyp/util.c | 1 + 7 files changed, 7 insertions(+), 2 deletions(-) diff --git a/polyp/authkey.c b/polyp/authkey.c index bbc45c378..9b60506ff 100644 --- a/polyp/authkey.c +++ b/polyp/authkey.c @@ -33,6 +33,7 @@ #include #include #include +#include #include "authkey.h" #include "util.h" diff --git a/polyp/main.c b/polyp/main.c index 2a45ad37c..0e55528df 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 46522d9b5..17c491dea 100644 --- a/polyp/module-protocol-stub.c +++ b/polyp/module-protocol-stub.c @@ -29,6 +29,7 @@ #include #include #include +#include #include "module.h" #include "socket-server.h" diff --git a/polyp/namereg.c b/polyp/namereg.c index 5791a3e45..e2f65efd3 100644 --- a/polyp/namereg.c +++ b/polyp/namereg.c @@ -27,7 +27,6 @@ #include #include #include -#include #include #include "namereg.h" diff --git a/polyp/pstream.c b/polyp/pstream.c index b0de9e8c6..5fe2b4e75 100644 --- a/polyp/pstream.c +++ b/polyp/pstream.c @@ -26,6 +26,7 @@ #include #include #include +#include #include #include "pstream.h" diff --git a/polyp/tagstruct.c b/polyp/tagstruct.c index 39ae87b53..bbebdab34 100644 --- a/polyp/tagstruct.c +++ b/polyp/tagstruct.c @@ -25,6 +25,8 @@ #include #include +#include +#include #include #include diff --git a/polyp/util.c b/polyp/util.c index cc132dbb1..7148654a2 100644 --- a/polyp/util.c +++ b/polyp/util.c @@ -33,6 +33,7 @@ #include #include #include +#include #include #include #include