Browse Source

zebra: fix rtadv check for non-glibc linux

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

Signed-off-by: Timo Teräs <timo.teras@iki.fi>
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Timo Teräs 6 years ago
parent
commit
b40e178af1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      zebra/interface.h

+ 1 - 1
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