mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-08 13:29:59 -05:00
Apply #ifdefs around functionality not available on win32
And also the reverse: around some win32 specific functionality
This commit is contained in:
parent
0ac0479534
commit
bb12ff8356
20 changed files with 120 additions and 13 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue