]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
OpenBSD-6.0 defines rt_mtu as a "convienience", so we need to #undef it.
authorRoy Marples <roy@marples.name>
Fri, 13 Jan 2017 21:05:19 +0000 (21:05 +0000)
committerRoy Marples <roy@marples.name>
Fri, 13 Jan 2017 21:05:19 +0000 (21:05 +0000)
route.h

diff --git a/route.h b/route.h
index f5735d1fcf8a81e05217fcdd8fbe674f7a9321af..452599a44681ae5f0f43876a108caa87e9a3366a 100644 (file)
--- a/route.h
+++ b/route.h
  * 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;