Index: src/main.c
===================================================================
RCS file: /cvsroot/olsrd/olsrd-current/src/main.c,v
retrieving revision 1.76
diff -C5 -r1.76 main.c
*** src/main.c	13 May 2005 10:13:36 -0000	1.76
--- src/main.c	15 May 2005 13:43:01 -0000
***************
*** 254,264 ****
      {
        olsr_syslog(OLSR_LOG_ERR, "ioctl socket: %m");
        olsr_exit(__func__, 0);
      }
  
! #if defined __FreeBSD__ || defined __MacOSX__ || defined __NetBSD__
    if ((rts = socket(PF_ROUTE, SOCK_RAW, 0)) < 0)
      {
        olsr_syslog(OLSR_LOG_ERR, "routing socket: %m");
        olsr_exit(__func__, 0);
      }
--- 254,264 ----
      {
        olsr_syslog(OLSR_LOG_ERR, "ioctl socket: %m");
        olsr_exit(__func__, 0);
      }
  
! #if defined __FreeBSD__ || defined __MacOSX__ || defined __NetBSD__ || defined __OpenBSD__
    if ((rts = socket(PF_ROUTE, SOCK_RAW, 0)) < 0)
      {
        olsr_syslog(OLSR_LOG_ERR, "routing socket: %m");
        olsr_exit(__func__, 0);
      }
Index: src/defs.h
===================================================================
RCS file: /cvsroot/olsrd/olsrd-current/src/defs.h,v
retrieving revision 1.46
diff -C5 -r1.46 defs.h
*** src/defs.h	14 Apr 2005 23:29:15 -0000	1.46
--- src/defs.h	15 May 2005 13:43:01 -0000
***************
*** 160,170 ****
  
  /* The socket used for all ioctls */
  int ioctl_s;
  
  /* routing socket */
! #if defined __FreeBSD__ || defined __MacOSX__ || defined __NetBSD__
  int rts;
  #endif
  
  float max_tc_vtime;
  
--- 160,170 ----
  
  /* The socket used for all ioctls */
  int ioctl_s;
  
  /* routing socket */
! #if defined __FreeBSD__ || defined __MacOSX__ || defined __NetBSD__ || defined __OpenBSD__
  int rts;
  #endif
  
  float max_tc_vtime;
  
