From: Juergen Perlinger Date: Tue, 2 Oct 2018 16:03:33 +0000 (+0200) Subject: [Bug 3529] Build failures on Mac OS X 10.13 (High Sierra) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=95316a4eb891ff2773d0c7c1b5c4e84bba978929;p=thirdparty%2Fntp.git [Bug 3529] Build failures on Mac OS X 10.13 (High Sierra) bk: 5bb396d5SKZUFp6S6NDp2i7iyzrY5g --- diff --git a/ChangeLog b/ChangeLog index f381a093c..246c7c7d8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +--- +* [Bug 3529] Build failures on Mac OS X 10.13 (High Sierra) + - 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 diff --git a/libntp/work_fork.c b/libntp/work_fork.c index cce686f23..c7fda804c 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,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 */