diff options
| author | Roy Marples <roy@marples.name> | 2017-08-12 09:17:23 +0100 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2017-08-12 09:17:23 +0100 |
| commit | 32ee94da8d8c9d15a28a92ddb6760baf2c87fd23 (patch) | |
| tree | d33ad09d5f8e20d1fd77f7a54032ece03406418e /src/dhcpcd.c | |
| parent | cc72c65c9d5ba1c376511e08af1890e3140d0e13 (diff) | |
| download | dhcpcd-32ee94da8d8c9d15a28a92ddb6760baf2c87fd23.tar.xz | |
Fix compile without INET6.
Diffstat (limited to 'src/dhcpcd.c')
| -rw-r--r-- | src/dhcpcd.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/dhcpcd.c b/src/dhcpcd.c index 6e8dba33..fe21612a 100644 --- a/src/dhcpcd.c +++ b/src/dhcpcd.c @@ -649,10 +649,12 @@ dhcpcd_initstate2(struct interface *ifp, unsigned long long options) } else ifo = ifp->options; +#ifdef INET6 if (ifo->options & DHCPCD_IPV6 && ipv6_init(ifp->ctx) == -1) { logerr(__func__); ifo->options &= ~DHCPCD_IPV6; } +#endif } static void |
