]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Fix compile problems on NetBSD and OpenBSD
authorGert Doering <gert@greenie.muc.de>
Fri, 9 Jul 2010 08:24:46 +0000 (10:24 +0200)
committerDavid Sommerseth <dazo@users.sourceforge.net>
Thu, 21 Oct 2010 09:40:36 +0000 (11:40 +0200)
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>
configure.ac

index 4626e4618c8cb6cb8dcd73723447c0aeef7b5745..b91a41ce88d7dae93f5e6a09351c8116b0a0631f 100644 (file)
@@ -371,6 +371,9 @@ if test "${WIN32}" != "yes"; then
                 [#ifdef HAVE_SYS_SOCKET_H 
                  # include <sys/socket.h>
                  #endif
+                 #ifdef HAVE_SYS_TYPES_H
+                 # include <sys/types.h>
+                 #endif
                 ])
    AC_CHECK_HEADERS(netinet/ip.h,,,
                 [#ifdef HAVE_SYS_TYPES_H