From: Roy Marples Date: Fri, 13 Jan 2017 21:05:19 +0000 (+0000) Subject: OpenBSD-6.0 defines rt_mtu as a "convienience", so we need to #undef it. X-Git-Tag: v7.0.0-beta1~87 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9cf8eadbafce4bf8ae8d54795eaab00654c00850;p=thirdparty%2Fdhcpcd.git OpenBSD-6.0 defines rt_mtu as a "convienience", so we need to #undef it. --- diff --git a/route.h b/route.h index f5735d1f..452599a4 100644 --- a/route.h +++ b/route.h @@ -50,6 +50,11 @@ * But that's generally OK if only dhcpcd is managing routes. */ #endif +/* OpenBSD defines this as a "convienience" ..... we work around it. */ +#ifdef __OpenBSD__ +#undef rt_mtu +#endif + struct rt { TAILQ_ENTRY(rt) rt_next; union sa_ss rt_ss_dest;