diff --git a/include/opendht/sockaddr.h b/include/opendht/sockaddr.h index d7de428f4f300939d4f76adbc53bc620364af264..4a3ccd40661c63f97ab5b43eb965d9ec05147095 100644 --- a/include/opendht/sockaddr.h +++ b/include/opendht/sockaddr.h @@ -21,8 +21,11 @@ #ifndef _WIN32 #include <sys/socket.h> #else +#include <iso646.h> #include <ws2def.h> #include <ws2tcpip.h> +typedef uint16_t sa_family_t; +typedef uint16_t in_port_t; #endif namespace dht {