[Olsr-cvs] olsrd-current/src olsr_types.h,1.10,1.11

Bernd Petrovitsch (spam-protected)
Fri Nov 2 11:16:41 CET 2007


Update of /cvsroot/olsrd/olsrd-current/src
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv26136/src

Modified Files:
	olsr_types.h 
Log Message:
With the help of Patrick McCarty <(spam-protected)>, we got olsr to build
on OpenBSD again:
* OpenBSD'd `sed` is pretty conservative and doesn't understand 's|re|sub|'.
  So we fall back to the old 's/re/sub/' and quote all '/' and '.' correctly
  (which was the main reason to use '|').
* OpenBSD needs an explicit "#include <sys/types.h>" before
  "#include <netinet/in.h>".


Index: olsr_types.h
===================================================================
RCS file: /cvsroot/olsrd/olsrd-current/src/olsr_types.h,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** olsr_types.h	24 Oct 2007 13:51:11 -0000	1.10
--- olsr_types.h	2 Nov 2007 10:16:39 -0000	1.11
***************
*** 70,73 ****
--- 70,75 ----
  #endif
  
+ /* OpenBSD wants this here */
+ #include <sys/types.h>
  /* IPv6 address format in6_addr */
  #include <netinet/in.h>
***************
*** 94,97 ****
  };
  
- 
  #endif
--- 96,98 ----





More information about the Olsr-cvs mailing list