Browse code

Fix <net/if.h> compile time problems on OpenBSD for good

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>

Gert Doering authored on 2010/07/10 18:24:41
Showing 1 changed files
... ...
@@ -368,12 +368,12 @@ if test "${WIN32}" != "yes"; then
368 368
 		 linux/types.h sys/poll.h sys/epoll.h err.h dnl
369 369
    )
370 370
    AC_CHECK_HEADERS(net/if.h,,,
371
-		 [#ifdef HAVE_SYS_SOCKET_H 
372
-		  # include <sys/socket.h>
373
-		  #endif
374
-	          #ifdef HAVE_SYS_TYPES_H
371
+		 [#ifdef HAVE_SYS_TYPES_H
375 372
 		  # include <sys/types.h>
376 373
 		  #endif
374
+		  #ifdef HAVE_SYS_SOCKET_H
375
+		  # include <sys/socket.h>
376
+		  #endif
377 377
 		 ])
378 378
    AC_CHECK_HEADERS(netinet/ip.h,,,
379 379
 		 [#ifdef HAVE_SYS_TYPES_H