configure.ac: fix tcp_var detection
Austin English
austinenglish at gmail.com
Wed Jan 21 14:04:08 CST 2009
tcp_var depends on tcp_timer on NetBSD
--
-Austin
-------------- next part --------------
diff --git a/configure.ac b/configure.ac
index 25e78e8..aed934c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -404,7 +404,7 @@ AC_CHECK_HEADERS(\
# 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/udp_var.h netinet/icmp_var.h netinet/tcp_timer.h ],,,
[#include <sys/types.h>
#ifdef HAVE_ALIAS_H
# include <alias.h>
@@ -434,6 +434,36 @@ AC_CHECK_HEADERS([netinet/tcp_var.h netinet/udp_var.h netinet/icmp_var.h netinet
# include <netinet/tcp.h>
#endif])
+AC_CHECK_HEADERS([netinet/tcp_var.h],,,
+ [#include <sys/types.h>
+ #ifdef HAVE_ALIAS_H
+ # include <alias.h>
+ #endif
+ #ifdef HAVE_SYS_SOCKET_H
+ # include <sys/socket.h>
+ #endif
+ #ifdef HAVE_SYS_SOCKETVAR_H
+ # include <sys/socketvar.h>
+ #endif
+ #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
+ #ifdef HAVE_NETINET_IP_VAR_H
+ # include <netinet/ip_var.h>
+ #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],,,
[#include <sys/types.h>
#ifdef HAVE_ASM_TYPES_H
More information about the wine-patches
mailing list