iphlpapi: Check for the right TCP statistics structure name (for DragonFly BSD).
diff --git a/configure.ac b/configure.ac
index d085459..d1acb72 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2324,6 +2324,18 @@
#include <netinet/ip_var.h>
#endif])
+dnl Check for struct tcpstat
+AC_CHECK_MEMBERS([struct tcpstat.tcps_connattempt],,,
+[#ifdef HAVE_NETINET_TCP_VAR_H
+#include <netinet/tcp_var.h>
+#endif])
+
+dnl Check for struct tcp_stats
+AC_CHECK_MEMBERS([struct tcp_stats.tcps_connattempt],,,
+[#ifdef HAVE_NETINET_TCP_VAR_H
+#include <netinet/tcp_var.h>
+#endif])
+
dnl Check for struct ifreq.ifr_hwaddr
AC_CHECK_MEMBERS([struct ifreq.ifr_hwaddr],,,
[#ifdef HAVE_SYS_TYPES_H