diff --git a/configure b/configure index 2f13aa885c1..d91102bca29 100755 --- a/configure +++ b/configure @@ -7206,9 +7206,6 @@ done - - - @@ -7261,13 +7258,10 @@ for ac_header in \ mntent.h \ ncurses.h \ netdb.h \ - netinet/if_ether.h \ netinet/in.h \ netinet/in_systm.h \ - netinet/ip_icmp.h \ netinet/tcp.h \ netinet/tcp_fsm.h \ - netinet/udp.h \ openssl/err.h \ openssl/ssl.h \ png.h \ @@ -7615,7 +7609,24 @@ done -for ac_header in netinet/in_pcb.h netinet/ip_var.h net/if.h net/if_arp.h net/if_dl.h net/if_types.h net/route.h netipx/ipx.h + + + + +for ac_header in \ + netinet/ip.h \ + net/if.h \ + net/if_arp.h \ + net/if_dl.h \ + net/if_types.h \ + net/route.h \ + netinet/if_ether.h \ + netinet/in_pcb.h \ + netinet/ip_icmp.h \ + netinet/ip_var.h \ + netinet/udp.h \ + netipx/ipx.h \ + do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` { echo "$as_me:$LINENO: checking for $ac_header" >&5 @@ -7639,6 +7650,9 @@ cat >>conftest.$ac_ext <<_ACEOF #ifdef HAVE_NETINET_IN_H # include #endif + #ifdef HAVE_NETINET_IP_H + # include + #endif #include <$ac_header> _ACEOF @@ -7713,6 +7727,9 @@ cat >>conftest.$ac_ext <<_ACEOF #ifdef HAVE_NETINET_IN_H # include #endif + #ifdef HAVE_NETINET_IP_H + # include + #endif #ifdef HAVE_NETINET_IP_VAR_H # include #endif diff --git a/configure.ac b/configure.ac index 8695b89e1c3..84ffddd5008 100644 --- a/configure.ac +++ b/configure.ac @@ -274,13 +274,10 @@ AC_CHECK_HEADERS(\ mntent.h \ ncurses.h \ netdb.h \ - netinet/if_ether.h \ netinet/in.h \ netinet/in_systm.h \ - netinet/ip_icmp.h \ netinet/tcp.h \ netinet/tcp_fsm.h \ - netinet/udp.h \ openssl/err.h \ openssl/ssl.h \ png.h \ @@ -352,8 +349,20 @@ AC_CHECK_HEADERS([sys/mount.h sys/statfs.h sys/user.h sys/vfs.h],,, # include #endif]) -AC_CHECK_HEADERS([netinet/in_pcb.h netinet/ip_var.h net/if.h net/if_arp.h net/if_dl.h net/if_types.h net/route.h netipx/ipx.h],,, - [#include +AC_CHECK_HEADERS(\ + netinet/ip.h \ + net/if.h \ + net/if_arp.h \ + net/if_dl.h \ + net/if_types.h \ + net/route.h \ + netinet/if_ether.h \ + netinet/in_pcb.h \ + netinet/ip_icmp.h \ + netinet/ip_var.h \ + netinet/udp.h \ + netipx/ipx.h \ +,,,[#include #ifdef HAVE_SYS_SOCKET_H # include #endif @@ -362,6 +371,9 @@ AC_CHECK_HEADERS([netinet/in_pcb.h netinet/ip_var.h net/if.h net/if_arp.h net/if #endif #ifdef HAVE_NETINET_IN_H # include + #endif + #ifdef HAVE_NETINET_IP_H + # include #endif]) AC_CHECK_HEADERS([netinet/tcp_var.h netinet/udp_var.h netinet/icmp_var.h netinet/tcp_timer.h ],,, @@ -378,6 +390,9 @@ AC_CHECK_HEADERS([netinet/tcp_var.h netinet/udp_var.h netinet/icmp_var.h netinet #ifdef HAVE_NETINET_IN_H # include #endif + #ifdef HAVE_NETINET_IP_H + # include + #endif #ifdef HAVE_NETINET_IP_VAR_H # include #endif diff --git a/dlls/iphlpapi/ipstats.c b/dlls/iphlpapi/ipstats.c index d6d8ab40600..5e40219ccfa 100644 --- a/dlls/iphlpapi/ipstats.c +++ b/dlls/iphlpapi/ipstats.c @@ -61,13 +61,15 @@ #ifdef HAVE_NETINET_IF_ETHER_H #include #endif +#ifdef HAVE_NETINET_IP_H +#include +#endif #ifdef HAVE_NETINET_TCP_H #include #endif #ifdef HAVE_NETINET_TCP_FSM_H #include #endif - #ifdef HAVE_NETINET_IN_PCB_H #include #endif @@ -628,6 +630,10 @@ DWORD getIPStats(PMIB_IPSTATS stats) DWORD getTCPStats(MIB_TCPSTATS *stats) { #if defined(HAVE_SYS_SYSCTL_H) && defined(UDPCTL_STATS) +#ifndef TCPTV_MIN /* got removed in Mac OS X for some reason */ +#define TCPTV_MIN 2 +#define TCPTV_REXMTMAX 128 +#endif int mib[] = {CTL_NET, PF_INET, IPPROTO_TCP, TCPCTL_STATS}; #define MIB_LEN (sizeof(mib) / sizeof(mib[0])) #define hz 1000 diff --git a/include/config.h.in b/include/config.h.in index 63e8e89b1f4..f57ca1aa5c2 100644 --- a/include/config.h.in +++ b/include/config.h.in @@ -453,6 +453,9 @@ /* Define to 1 if you have the header file. */ #undef HAVE_NETINET_IN_SYSTM_H +/* Define to 1 if you have the header file. */ +#undef HAVE_NETINET_IP_H + /* Define to 1 if you have the header file. */ #undef HAVE_NETINET_IP_ICMP_H