diff options
| author | Fabrice Fontaine <fontaine.fabrice@gmail.com> | 2020-12-26 20:45:08 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-12-26 19:45:08 +0000 |
| commit | 572a94cef8286f343f39fbfdedcc469ebb94977e (patch) | |
| tree | d51128cfe95785a0fbd7eb054f43e23b900d0a9a /src/dhcpcd.c | |
| parent | 111fb8364c07cc9bf0c432eabb9582c346378649 (diff) | |
| download | dhcpcd-572a94cef8286f343f39fbfdedcc469ebb94977e.tar.xz | |
src/dhcpcd.c: fix build without fork or signals (#20)
Since version 9.3.3 and commit a5348dd02c86fa940cd93f203d0aa974cae0563c,
build without fork or signals fails on:
dhcpcd.c: In function ‘main’:
dhcpcd.c:2261:3: error: label ‘start_master’ used but not defined
goto start_master;
^~~~
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Diffstat (limited to 'src/dhcpcd.c')
| -rw-r--r-- | src/dhcpcd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dhcpcd.c b/src/dhcpcd.c index 3acf72c3..1d34cdbb 100644 --- a/src/dhcpcd.c +++ b/src/dhcpcd.c @@ -2310,10 +2310,10 @@ printpidfile: if (ctx.stdin_valid && freopen(_PATH_DEVNULL, "w", stdin) == NULL) logwarn("freopen stdin"); +#if defined(USE_SIGNALS) && !defined(THERE_IS_NO_FORK) if (!(ctx.options & DHCPCD_DAEMONISE)) goto start_master; -#if defined(USE_SIGNALS) && !defined(THERE_IS_NO_FORK) if (xsocketpair(AF_UNIX, SOCK_DGRAM | SOCK_CXNB, 0, fork_fd) == -1 || (ctx.stderr_valid && xsocketpair(AF_UNIX, SOCK_DGRAM | SOCK_CXNB, 0, stderr_fd) == -1)) |
