X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/4841fc240d1f9346ed0a37f1bedb267d33b76645..refs/pull/494/head:/netdissect-stdinc.h?ds=sidebyside diff --git a/netdissect-stdinc.h b/netdissect-stdinc.h old mode 100644 new mode 100755 index de277319..e201afa4 --- a/netdissect-stdinc.h +++ b/netdissect-stdinc.h @@ -51,13 +51,11 @@ #include #include #include -#include "bittypes.h" /* in wpcap's Win32/include */ #include #include #include #include #include -#include /* in wpcap's Win32/include */ #ifndef uint8_t #define uint8_t unsigned char @@ -137,6 +135,17 @@ #endif /* _MSC_EXTENSIONS */ +/* + * Suppress definition of intN_t in bittypes.h, as included by + * on Windows. + * (Yes, HAVE_U_INTn_T, as the definition guards are UN*X-oriented, and + * we check for u_intN_t in the UN*X configure script.) + */ +#define HAVE_U_INT8_T +#define HAVE_U_INT16_T +#define HAVE_U_INT32_T +#define HAVE_U_INT64_T + #ifdef _MSC_VER #define stat _stat #define open _open @@ -153,6 +162,10 @@ #define inline __inline #endif +#ifdef AF_INET6 +#define HAVE_OS_IPV6_SUPPORT +#endif + #ifndef INET6_ADDRSTRLEN #define INET6_ADDRSTRLEN 46 #endif