[OLSR-users] Support for OpenBSD?

Holger Mauermann (spam-protected)
Tue May 17 23:24:29 CEST 2005


Andreas Tønnesen wrote:
> Sorry, I had forgot various issues in bsd/net.c. Please try to check out
> later today and varify that things compile.

you also forgot the patches to main.c and unix/ifnet.c ;-)
Here they are again:

--- src/main.c	15 May 2005 13:43:34 -0000	1.77
+++ src/main.c	17 May 2005 20:41:33 -0000
@@ -474,7 +474,7 @@
   /* ioctl socket */
   close(ioctl_s);

-#if defined __FreeBSD__ || defined __MacOSX__ || defined __NetBSD__
+#if defined __FreeBSD__ || defined __MacOSX__ || defined __NetBSD__ ||
defined __OpenBSD__
   /* routing socket */
   close(rts);
 #endif


--- src/unix/ifnet.c	7 Mar 2005 19:17:02 -0000	1.25
+++ src/unix/ifnet.c	17 May 2005 20:41:33 -0000
@@ -40,7 +40,7 @@
  */


-#if defined __FreeBSD__ || defined __MacOSX__ || defined __NetBSD__
+#if defined __FreeBSD__ || defined __MacOSX__ || defined __NetBSD__ ||
defined __OpenBSD__
 #define ifr_netmask ifr_addr
 #endif



Then olsrd compiles and there only remain some warnings, e.g.

src/interfaces.c:333: warning: strcpy() is almost always misused, please
use strlcpy()
src/lq_route.c:307: warning: sprintf() is often misused, please use
snprintf()

Maybe these are some good candidates for autoconf ;-)


-- 
\-- Holger Mauermann
 \-- (spam-protected)
  \-- PGP Key Id: 0x8EA8C301



More information about the Olsr-users mailing list