[quagga-dev 3949] Quagga 0.99.3 compile on OpenBSD 3.8

Tom Everett tom at khubla.com
Thu Feb 16 22:35:23 GMT 2006


I was unable to compile 0.99.3 on OpenBSD 3.8.   Two changes were 
required, which make it work nicely.

--- quagga-0.99.3/lib/zebra.h   Wed Jan 11 20:24:56 2006
+++ quagga-0.99.3_tge/lib/zebra.h       Thu Feb 16 13:10:23 2006
@@ -29,6 +29,11 @@
 #define _GNU_SOURCE
 #endif /* GNU_LINUX */
 
+#ifdef OPEN_BSD
+#include <inttypes.h>
+#define UINT16_MAX 65535
+#endif /* OPEN_BSD */
+
 #ifdef SUNOS_5
 #define _XPG4_2
 #define __EXTENSIONS__
#


and

--- quagga-0.99.3/zebra/kernel_socket.c Tue Jan 24 06:15:31 2006
+++ quagga-0.99.3_tge/zebra/kernel_socket.c     Thu Feb 16 11:36:23 2006
@@ -136,8 +136,10 @@
   {RTM_REDIRECT, "RTM_REDIRECT"},
   {RTM_MISS,     "RTM_MISS"},
   {RTM_LOCK,     "RTM_LOCK"},
+#ifndef OPEN_BSD
   {RTM_OLDADD,   "RTM_OLDADD"},
   {RTM_OLDDEL,   "RTM_OLDDEL"},
+#endif /* OPEN_BSD */
   {RTM_RESOLVE,  "RTM_RESOLVE"},
   {RTM_NEWADDR,  "RTM_NEWADDR"},
   {RTM_DELADDR,  "RTM_DELADDR"},
#

I apologize in advance if my changes are cheap hacks, or don't follow 
existing coding standards for quagga.  I have only tested this for RIP.






More information about the Quagga-dev mailing list