]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Fix <net/if.h> compile time problems on OpenBSD for good
authorGert Doering <gert@greenie.muc.de>
Sat, 10 Jul 2010 09:24:41 +0000 (11:24 +0200)
committerDavid Sommerseth <dazo@users.sourceforge.net>
Thu, 21 Oct 2010 09:40:36 +0000 (11:40 +0200)
Previous fix (commit eb973e055bc249948) fixed NetBSD but not OpenBSD
(include <sys/socket.h> *after* <sys/types.h>)

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 b91a41ce88d7dae93f5e6a09351c8116b0a0631f..c817938f83b1084808408bb375de36579458bf7e 100644 (file)
@@ -368,12 +368,12 @@ if test "${WIN32}" != "yes"; then
                 linux/types.h sys/poll.h sys/epoll.h err.h dnl
    )
    AC_CHECK_HEADERS(net/if.h,,,
-                [#ifdef HAVE_SYS_SOCKET_H 
-                 # include <sys/socket.h>
-                 #endif
-                 #ifdef HAVE_SYS_TYPES_H
+                [#ifdef HAVE_SYS_TYPES_H
                  # include <sys/types.h>
                  #endif
+                 #ifdef HAVE_SYS_SOCKET_H
+                 # include <sys/socket.h>
+                 #endif
                 ])
    AC_CHECK_HEADERS(netinet/ip.h,,,
                 [#ifdef HAVE_SYS_TYPES_H