diff options
| author | Renato Westphal <renato@opensourcerouting.org> | 2016-09-21 23:59:57 -0300 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-09-23 09:31:25 -0400 |
| commit | fe6c7157bf2babbc552dc45115da586bde1b92e7 (patch) | |
| tree | 3d9792b6a1de0e8c621a4ea7aba1da8b367cf2a7 /lib | |
| parent | a4b46f4c16bd4cb1f2c890c08ff541468d59d9b3 (diff) | |
zebra: check at startup if the kernel supports MPLS
Replace all HAVE_MPLS #ifdef's by a run-time check if MPLS is supported
by the kernel or not. This way we don't need to create multiple packages
for each OS distribution.
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/sockunion.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sockunion.h b/lib/sockunion.h index abad43122e..7dbd247dca 100644 --- a/lib/sockunion.h +++ b/lib/sockunion.h @@ -25,7 +25,7 @@ #include "privs.h" #include "if.h" -#if defined HAVE_MPLS && defined __OpenBSD__ +#ifdef __OpenBSD__ #include <netmpls/mpls.h> #endif @@ -34,7 +34,7 @@ union sockunion struct sockaddr sa; struct sockaddr_in sin; struct sockaddr_in6 sin6; -#if defined HAVE_MPLS && defined __OpenBSD__ +#ifdef __OpenBSD__ struct sockaddr_mpls smpls; #endif }; |
