# Patches necessary to build Bro 0.9a9 on OpenBSD 3.8

**URL:** <https://community.zeek.org/t/patches-necessary-to-build-bro-0-9a9-on-openbsd-3-8/863>\
**Category:** Zeek\
**Created:** [September 19, 2005, 4:39am UTC](https://community.zeek.org/t/patches-necessary-to-build-bro-0-9a9-on-openbsd-3-8/863 "2005-09-19T04:39:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gordon\_Willem\_Klok](https://avatars.discourse-cdn.com/v4/letter/g/e79b87/32.png) [@Gordon\_Willem\_Klok](https://community.zeek.org/u/Gordon_Willem_Klok)\
**Post date:** [September 19, 2005, 4:39am UTC](https://community.zeek.org/t/patches-necessary-to-build-bro-0-9a9-on-openbsd-3-8/863/1 "2005-09-19T04:39:56Z")

</div>

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 @@  
&nbsp;&nbsp;&nbsp;\* "const char \*", so no matter how we declare it here, it'll fail to  
&nbsp;&nbsp;&nbsp;\* compile on one of 3.x or 4.x).  
&nbsp;&nbsp;&nbsp;\*/  
-#if !defined(sgi) && !defined(\_\_NetBSD\_\_) && !defined(\_\_FreeBSD\_\_)  
+#if !defined(sgi) && !defined(\_\_NetBSD\_\_) && !defined(\_\_FreeBSD\_\_) &&  
!defined(\_\_OpenBSD\_\_)  
&nbsp;&nbsp;extern int ether\_hostton(char \*, struct ether\_addr \*);  
&nbsp;&nbsp;#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 @@

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#ifdef NEED\_NAMESER\_COMPAT\_H  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#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  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#else  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#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  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#endif

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#include \<ctype.h\>

Hope this is helpful,  
GWK

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/zeek/original/1X/f09d732bc2cc7c7cc7e35db67cf4e1d5233ce7a7.png) [@system](https://community.zeek.org/u/system)\
**Post date:** [May 6, 2022, 3:37pm UTC](https://community.zeek.org/t/patches-necessary-to-build-bro-0-9a9-on-openbsd-3-8/863/2 "2022-05-06T15:37:41Z")

</div>


