summaryrefslogtreecommitdiffstats
path: root/src/daemon/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/daemon/main.c')
-rw-r--r--src/daemon/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/daemon/main.c b/src/daemon/main.c
index 90ed5ce0..94c87d15 100644
--- a/src/daemon/main.c
+++ b/src/daemon/main.c
@@ -748,7 +748,9 @@ int main(int argc, char *argv[]) {
}
if (conf->daemonize) {
+#ifdef HAVE_FORK
pid_t child;
+#endif
if (pa_stdio_acquire() < 0) {
pa_log(_("Failed to acquire stdio."));