summaryrefslogtreecommitdiffstats
path: root/src/pulsecore/start-child.c
diff options
context:
space:
mode:
authorMaarten Bosmans <mkbosmans@gmail.com>2011-01-06 00:51:33 +0100
committerMaarten Bosmans <mkbosmans@gmail.com>2011-02-17 11:58:22 +0100
commitbb12ff83564d43566089dd979639c6993ba76665 (patch)
tree1d7df88762eeba464971742328b7617ffb93f3b3 /src/pulsecore/start-child.c
parent0ac0479534d9cb6e4ef734eeb3a663f33a4f8ef3 (diff)
Apply #ifdefs around functionality not available on win32
And also the reverse: around some win32 specific functionality
Diffstat (limited to 'src/pulsecore/start-child.c')
-rw-r--r--src/pulsecore/start-child.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pulsecore/start-child.c b/src/pulsecore/start-child.c
index 4a70aea1..dabcfa5b 100644
--- a/src/pulsecore/start-child.c
+++ b/src/pulsecore/start-child.c
@@ -47,6 +47,7 @@ int pa_start_child_for_read(const char *name, const char *argv1, pid_t *pid) {
pid_t child;
int pipe_fds[2] = { -1, -1 };
+#ifdef HAVE_FORK
if (pipe(pipe_fds) < 0) {
pa_log("pipe() failed: %s", pa_cstrerror(errno));
goto fail;
@@ -104,6 +105,7 @@ int pa_start_child_for_read(const char *name, const char *argv1, pid_t *pid) {
execl(name, name, argv1, NULL);
_exit(1);
}
+#endif
fail:
pa_close_pipe(pipe_fds);