]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
Fix build failure with forking worker.
authorDave Hart <hart@ntp.org>
Fri, 5 Jan 2024 08:09:43 +0000 (08:09 +0000)
committerDave Hart <hart@ntp.org>
Fri, 5 Jan 2024 08:09:43 +0000 (08:09 +0000)
bk: 6597b947jN0P4ToOmkxkRlYO_m4ETg

ntpd/ntpd.c

index 2d4501537fa35b63f763ba9471fb5780f09a1602..110a912d68c652f41bf54121ab9f07569f46c766 100644 (file)
@@ -668,6 +668,7 @@ detach_from_terminal(
        return;
 }
 # endif /* HAVE_WORKING_FORK */
+#endif /* !SIM && !SYS_WINNT */
 
 #ifdef HAVE_DROPROOT
 /*
@@ -806,7 +807,6 @@ set_user_group_ids(void)
        return 1;
 }
 #endif /* HAVE_DROPROOT */
-#endif /* !SIM */
 
 /*
  * Main program.  Initialize us, disconnect us from the tty if necessary,