diff options
Diffstat (limited to 'src/pulsecore/start-child.c')
-rw-r--r-- | src/pulsecore/start-child.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/pulsecore/start-child.c b/src/pulsecore/start-child.c index 4a70aea1..fd1baebb 100644 --- a/src/pulsecore/start-child.c +++ b/src/pulsecore/start-child.c @@ -40,6 +40,7 @@ #include <pulsecore/core-util.h> #include <pulsecore/core-error.h> +#include <pulsecore/pipe.h> #include "start-child.h" @@ -47,6 +48,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 +106,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); |