minor compile issue on rc29

Andreas Östling andreaso at it.su.se
Tue Sep 19 06:59:16 EDT 2006


I get this error when compiling argus-rc29 on OpenBSD 3.9:

argus_util.c:2141: error: conflicting types for `ether_hostton'
/usr/include/netinet/if_ether.h:304: error: previous declaration of 
`ether_hostton'

OpenBSD (at least 3.9) use const char *, struct ether_addr * so simply 
removing the conflicting __OpenBSD__ hook will make it work again.

--- argus_util.c.org    Tue Sep 19 12:51:06 2006
+++ argus_util.c        Tue Sep 19 12:51:29 2006
@@ -2137,11 +2137,7 @@
 };
 #endif
 #if !defined(__APPLE_CC__) && !defined(__APPLE__)
-#if defined(__OpenBSD__)
-extern int ether_hostton(char *, struct ether_addr *);
-#else
 extern int ether_hostton(const char *, struct ether_addr *);
-#endif
 #endif
 #endif


/Andreas



More information about the argus mailing list