From 34c6272765b1f870f25aad261f759dd9d4776abc Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Wed, 27 Jul 2016 04:11:00 +0000 Subject: [PATCH] #undef RTF_CLONING for Solaris in if.h so it's picked up everywhere. --- if-sun.c | 5 ----- if.h | 4 ++++ 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/if-sun.c b/if-sun.c index 0a76e21c..a0bcac4e 100644 --- a/if-sun.c +++ b/if-sun.c @@ -65,11 +65,6 @@ # 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 55ae4093..c56e4de0 100644 --- a/if.h +++ b/if.h @@ -90,6 +90,10 @@ #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; -- 2.47.3