]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
#undef RTF_CLONING for Solaris in if.h so it's picked up everywhere.
authorRoy Marples <roy@marples.name>
Wed, 27 Jul 2016 04:11:00 +0000 (04:11 +0000)
committerRoy Marples <roy@marples.name>
Wed, 27 Jul 2016 04:11:00 +0000 (04:11 +0000)
if-sun.c
if.h

index 0a76e21c41e9c375235eb0a7d228a886ce0a23b8..a0bcac4e67af6f29cf1b6dce506a6a5ff4cbed3c 100644 (file)
--- a/if-sun.c
+++ b/if-sun.c
 #  define ARP_MOD_NAME        "arp"
 #endif
 
-#ifdef RTF_CLONING
-/* Solaris has this in route.h but the man page says the kernel ignores it. */
-#undef RTF_CLONING
-#endif
-
 #ifndef RT_ROUNDUP
 #define RT_ROUNDUP(a)                                                        \
        ((a) > 0 ? (1 + (((a) - 1) | (sizeof(long) - 1))) : sizeof(long))
diff --git a/if.h b/if.h
index 55ae409365c5ebaa3b0336f09462ffa140d58f79..c56e4de03930c8f2034399688a4463b917cef5dc 100644 (file)
--- a/if.h
+++ b/if.h
 #define RAW_PARTIALCSUM                2 << 0
 
 #ifdef __sun
+/* Solaris stupidly defines this for compat with BSD
+ * but then ignores it. */
+#undef RTF_CLONING
+
 /* Solaris getifaddrs is very un-suitable for dhcpcd.
  * See if-sun.c for details why. */
 struct ifaddrs;