Browse code

Fix compile problems on NetBSD and OpenBSD

Configure will not find <net/if.h> due to missing <sys/types.h> in the test program,
and thus, tun.c will fail to compile with missing symbol IFF_MULTICAST.

Signed-off-by: Gert Doering <gert@greenie.muc.de>
Acked-by: krzee <jeff@doeshosting.com>
Signed-off-by: David Sommerseth <dazo@users.sourceforge.net>

Gert Doering authored on 2010/07/09 17:24:46
Showing 1 changed files
... ...
@@ -371,6 +371,9 @@ if test "${WIN32}" != "yes"; then
371 371
 		 [#ifdef HAVE_SYS_SOCKET_H 
372 372
 		  # include <sys/socket.h>
373 373
 		  #endif
374
+	          #ifdef HAVE_SYS_TYPES_H
375
+		  # include <sys/types.h>
376
+		  #endif
374 377
 		 ])
375 378
    AC_CHECK_HEADERS(netinet/ip.h,,,
376 379
 		 [#ifdef HAVE_SYS_TYPES_H