summaryrefslogtreecommitdiff
path: root/libntp/work_fork.c
diff options
context:
space:
mode:
Diffstat (limited to 'libntp/work_fork.c')
-rw-r--r--libntp/work_fork.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/libntp/work_fork.c b/libntp/work_fork.c
index 96c550e98594..6c9545aa9cbc 100644
--- a/libntp/work_fork.c
+++ b/libntp/work_fork.c
@@ -451,7 +451,7 @@ fork_blocking_child(
}
}
-#ifdef HAVE_DROPROOT
+#if defined(HAVE_DROPROOT) && !defined(NEED_EARLY_FORK)
/* defer the fork until after root is dropped */
if (droproot && !root_dropped)
return;
@@ -540,6 +540,11 @@ fork_blocking_child(
}
+void worker_global_lock(int inOrOut)
+{
+ (void)inOrOut;
+}
+
#else /* !WORK_FORK follows */
char work_fork_nonempty_compilation_unit;
#endif