[Bro] OpenBSD Compiling problem

Gordon Willem Klok gklok at cogeco.ca
Thu Oct 13 08:59:09 PDT 2005


Patches for 0.9a9 on OpenBSD 3.7 and -current.

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

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




More information about the Bro mailing list