[Bro] Patches necessary to build Bro 0.9a9 on OpenBSD 3.8

Gordon Willem Klok gklok at cogeco.ca
Sun Sep 18 21:39:56 PDT 2005


Hello the following changes were necessary to build Bro on OpenBSD 3.8.

aux/pcap-0.7.2
--- nametoaddr.c.orig	Tue Sep 13 03:18:47 2005
+++ nametoaddr.c	Tue Sep 13 03:20:55 2005
@@ -364,7 +364,7 @@
   * "const char *", so no matter how we declare it here, it'll fail to
   * compile on one of 3.x or 4.x).
   */
-#if !defined(sgi) && !defined(__NetBSD__) && !defined(__FreeBSD__)
+#if !defined(sgi) && !defined(__NetBSD__) && !defined(__FreeBSD__) &&
!defined(__OpenBSD__)
  extern int ether_hostton(char *, struct ether_addr *);
  #endif

aux/hf slight change leaves the check for NEED_NAMESER_COMPAT_H
however ensures that NS_MAXDNAME, NS_INADDRSIZ and NS_IN6ADDRSZ
are defined (as OpenBSD lacks <arpa/nameser_compat.h> and the above are 
not defined in <arpa/nameser.h> .

--- hf.l.orig	Tue Sep 13 03:31:25 2005
+++ hf.l	Mon Sep 19 00:37:44 2005
@@ -16,17 +16,17 @@

      #ifdef NEED_NAMESER_COMPAT_H
  	    #include <arpa/nameser_compat.h>
-	    #ifndef NS_MAXDNAME
-		    #define NS_MAXDNAME 1025
-	    #endif
-	    #ifndef NS_INADDRSZ
-		    #define NS_INADDRSZ 4
-	    #endif
-	    #ifndef NS_IN6ADDRSZ
-		    #define NS_IN6ADDRSZ 16
-	    #endif
      #else
  	    #include <arpa/nameser.h>
+    #endif
+    #ifndef NS_MAXDNAME
+	    #define NS_MAXDNAME 1025
+    #endif
+    #ifndef NS_INADDRSZ
+	    #define NS_INADDRSZ 4
+    #endif
+    #ifndef NS_IN6ADDRSZ
+	    #define NS_IN6ADDRSZ 16
      #endif

      #include <ctype.h>

Hope this is helpful,
GWK



More information about the Bro mailing list