configure.ac: fix a couple more includes on NetBSD (try 3)

Austin English austinenglish at gmail.com
Fri Jan 23 13:29:42 CST 2009


tcp_var has to be included after tcp_timer, which need
netinet/in_systm.h. Also including netinet/in_systm.h for netinet/ip.h
so it doesn't fail.

Try 3:
Moved the order of includes rather than moving tcp_var into it's own
AC_CHECK_HEADER to appease AJ

-- 
-Austin
-------------- next part --------------
diff --git a/configure.ac b/configure.ac
index 66ad0ac..c2f4588 100644
--- a/configure.ac
+++ b/configure.ac
@@ -402,11 +402,14 @@ AC_CHECK_HEADERS(\
      #ifdef HAVE_NETINET_IN_H
      # include <netinet/in.h>
      #endif
+     #ifdef HAVE_NETINET_IN_SYSTM_H
+     # include <netinet/in_systm.h>
+     #endif
      #ifdef HAVE_NETINET_IP_H
      # include <netinet/ip.h>
      #endif])

-AC_CHECK_HEADERS([netinet/tcp_var.h netinet/udp_var.h netinet/icmp_var.h netinet/tcp_timer.h ],,,
+AC_CHECK_HEADERS([netinet/tcp_timer.h netinet/udp_var.h netinet/icmp_var.h netinet/tcp_var.h ],,,
     [#include <sys/types.h>
      #ifdef HAVE_ALIAS_H
      # include <alias.h>
@@ -420,6 +423,9 @@ AC_CHECK_HEADERS([netinet/tcp_var.h netinet/udp_var.h netinet/icmp_var.h netinet
      #ifdef HAVE_NETINET_IN_H
      # include <netinet/in.h>
      #endif
+     #ifdef HAVE_NETINET_IN_SYSTM_H
+     # include <netinet/in_systm.h>
+     #endif
      #ifdef HAVE_NETINET_IP_H
      # include <netinet/ip.h>
      #endif
@@ -434,6 +440,9 @@ AC_CHECK_HEADERS([netinet/tcp_var.h netinet/udp_var.h netinet/icmp_var.h netinet
      #endif
      #ifdef HAVE_NETINET_TCP_H
      # include <netinet/tcp.h>
+     #endif
+     #ifdef HAVE_NETINET_TCP_TIMER_H
+     #include <netinet/tcp_timer.h>
      #endif])

 AC_CHECK_HEADERS([linux/ipx.h],,,
--
1.6.0.2


More information about the wine-patches mailing list