]> git.proxmox.com Git - mirror_frr.git/commitdiff
lib: Fix ordering of RB Tree
authorDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 16 Jun 2017 21:40:17 +0000 (17:40 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 16 Jun 2017 21:48:18 +0000 (17:48 -0400)
So the *bsd implementations of RB Tree's for older
platforms use a macro implementation.  New platforms
have converted to a function implementation that uses
a different calling parameter list.  So when
we attempt to build FRR on older *bsd implementations
the macro's and functions do not interact too well.

As a workaround put the openbsd-tree.h #include
inside of zebra.h at a point before the particular
platforms version is included.  Since we use
the same #if guard for the header we should be ok.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
lib/zebra.h

index 0a61c433d945d5633bbfc961a9aa3bff3acf89b0..2cc433a863fe16cd8712b95656a04446db870f94 100644 (file)
@@ -126,6 +126,8 @@ typedef unsigned char   u_int8_t;
 #define __APPLE_USE_RFC_3542
 #endif
 
+#include "lib/openbsd-tree.h"
+
 #include <netinet/in.h>
 #include <netinet/in_systm.h>
 #include <netinet/ip.h>