Make it compile again on FreeBSD after the syslog changes.
authorJohn Hay <jhay@meraka.org.za>
Sat, 4 Apr 2009 07:07:58 +0000 (09:07 +0200)
committerJohn Hay <jhay@meraka.org.za>
Sat, 4 Apr 2009 07:07:58 +0000 (09:07 +0200)
src/bsd/kernel_routes.c
src/bsd/net.c

index a74572b..f9b36ea 100644 (file)
@@ -45,6 +45,7 @@
 #include "process_routes.h"
 #include "net_olsr.h"
 #include "ipcalc.h"
+#include "olsr_logging.h"
 
 #include <errno.h>
 #include <unistd.h>
index 78874a5..df69be6 100644 (file)
  *
  */
 
-#include "../defs.h"
-#include "../net_os.h"
-#include "../ipcalc.h"
-#include "../parser.h"         /* dnc: needed for call to packet_parser() */
-#include "../olsr_protocol.h"
-#include "../common/string.h"
-#include "../misc.h"
+#include "defs.h"
+#include "net_os.h"
+#include "ipcalc.h"
+#include "parser.h"            /* dnc: needed for call to packet_parser() */
+#include "olsr_protocol.h"
+#include "common/string.h"
+#include "misc.h"
+#include "olsr_logging.h"
 
 #include <sys/types.h>
 #include <sys/socket.h>
@@ -541,7 +542,7 @@ get_ipv6_address(char *ifname, struct sockaddr_in6 *saddr6, int addrtype6)
   u_int32_t flags6;
 
   if (getifaddrs(&ifap) != 0) {
-    OLSR_WARN(LOG_NETWORKING, "getifaddrs() failed (%s).\n", strerro(errno));
+    OLSR_WARN(LOG_NETWORKING, "getifaddrs() failed (%s).\n", strerror(errno));
     return 0;
   }