From 29b75a3191c449a660836b7f3b5ddb68dcd0e16c Mon Sep 17 00:00:00 2001 From: Stuart Henderson Date: Fri, 3 Apr 2020 12:23:49 +0000 Subject: [PATCH] use TEMP_PREFERRED/VALID_LIFETIME for OpenBSD Shortly after dhcpcd started using these constants, they were dropped from OpenBSD kernel headers as they're only used by rad(8). Switch to dhcpcd's own constants instead, fixing build on recent -current. --- src/if-bsd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/if-bsd.c b/src/if-bsd.c index d6c38903..52cb2b23 100644 --- a/src/if-bsd.c +++ b/src/if-bsd.c @@ -1730,14 +1730,14 @@ int ip6_temp_preferred_lifetime(__unused const char *ifname) { - return ND6_PRIV_PREFERRED_LIFETIME; + return TEMP_PREFERRED_LIFETIME; } int ip6_temp_valid_lifetime(__unused const char *ifname) { - return ND6_PRIV_VALID_LIFETIME; + return TEMP_VALID_LIFETIME; } #else /* __OpenBSD__ */ -- 2.47.2