Fix compile without various defines

This commit is contained in:
Roy Marples 2020-10-30 22:18:57 +00:00
parent 734031c7ca
commit 88702bf5b6
2 changed files with 7 additions and 3 deletions

View File

@ -2082,12 +2082,14 @@ dhcp_addr_duplicated(struct interface *ifp, struct in_addr *ia)
#ifdef ARP
#ifdef KERNEL_RFC5227
#ifdef ARPING
static void
dhcp_arp_announced(struct arp_state *state)
{
arp_free(state);
}
#endif
#else
static void
dhcp_arp_defend_failed(struct arp_state *astate)

View File

@ -1422,13 +1422,15 @@ dhcpcd_signal_cb(int sig, void *arg)
return;
case SIGUSR2:
loginfox(sigmsg, "SIGUSR2", "reopening log");
#ifdef PRIVSEP
if (IN_PRIVSEP(ctx)) {
if (ps_root_logreopen(ctx) == -1)
logerr("ps_root_logreopen");
} else {
if (logopen(ctx->logfile) == -1)
logerr("logopen");
return;
}
#endif
if (logopen(ctx->logfile) == -1)
logerr("logopen");
return;
case SIGCHLD:
while (waitpid(-1, NULL, WNOHANG) > 0)