]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
[Bug 3529] Build failures on Mac OS X 10.13 (High Sierra)
authorJuergen Perlinger <perlinger@ntp.org>
Tue, 2 Oct 2018 16:03:33 +0000 (18:03 +0200)
committerJuergen Perlinger <perlinger@ntp.org>
Tue, 2 Oct 2018 16:03:33 +0000 (18:03 +0200)
bk: 5bb396d5SKZUFp6S6NDp2i7iyzrY5g

ChangeLog
libntp/work_fork.c

index f381a093cf948c1202162000eaf2d8abbf1a1dcf..246c7c7d8bb79952f555ff395b586056e667b950 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+---
+* [Bug 3529] Build failures on Mac OS X 10.13 (High Sierra) <perlinger@ntp.org>
+  - patch by Daniel J. Luke; this does not fix a potential linker
+    regression issue on MacOS.
+
 ---
 (4.2.8p12) 2018/08/14 Released by Harlan Stenn <stenn@ntp.org>
 
index cce686f239cc246b964d6a24e61650787ae8605b..c7fda804c1e3b7fc7f3fb9851127f84a4a4aaedf 100644 (file)
@@ -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,8 +596,9 @@ fork_blocking_child(
        init_logging("ntp_intres", 0, FALSE);
        setup_logfile(NULL);
 
-       (void) set_user_group_ids();
-
+#if defined(HAVE_DROPROOT)
+       (void)set_user_group_ids();
+#endif
        /*
         * And now back to the portable code
         */