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.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/libntp/work_fork.c b/libntp/work_fork.c
index cce686f239cc..1dd9e13d668f 100644
--- a/libntp/work_fork.c
+++ b/libntp/work_fork.c
@@ -89,7 +89,9 @@ netwrite(
}
-int set_user_group_ids(void);
+#if defined(HAVE_DROPROOT)
+extern int set_user_group_ids(void);
+#endif
/* === functions === */
/*
@@ -594,7 +596,9 @@ fork_blocking_child(
init_logging("ntp_intres", 0, FALSE);
setup_logfile(NULL);
+#ifdef HAVE_DROPROOT
(void) set_user_group_ids();
+#endif
/*
* And now back to the portable code