mirror of
https://github.com/rsmarples/dhcpcd.git
synced 2024-11-27 12:03:45 +08:00
Fix compile without various defines
This commit is contained in:
parent
734031c7ca
commit
88702bf5b6
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user