[quagga-dev 12195] [PATCH 2/7] zebra: fix rtadv check for non-glibc linux

Timo Teräs timo.teras at iki.fi
Wed Apr 29 07:43:00 BST 2015


Default RTADV enabled for non-glibc linux (fixes check for musl libc).

Signed-off-by: Timo Teräs <timo.teras at iki.fi>
---
 zebra/interface.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/zebra/interface.h b/zebra/interface.h
index 2f3b7b9..0f081f6 100644
--- a/zebra/interface.h
+++ b/zebra/interface.h
@@ -38,7 +38,7 @@
 #define IF_ZEBRA_SHUTDOWN_ON     1
 
 /* Router advertisement feature. */
-#if (defined(LINUX_IPV6) && (defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1)) || defined(KAME)
+#if (defined(LINUX_IPV6) && (!defined(__GLIBC__) || defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1)) || defined(KAME)
   #ifdef HAVE_RTADV
     #define RTADV
   #endif
-- 
2.3.6





More information about the Quagga-dev mailing list