diff --git a/include/opendht/sockaddr.h b/include/opendht/sockaddr.h index b346f72b7063a28252e59519c7e10ac0195ce44a..d25632d3713d44d8d9aed43e28114ac939856dae 100644 --- a/include/opendht/sockaddr.h +++ b/include/opendht/sockaddr.h @@ -22,6 +22,10 @@ #ifndef _WIN32 #include <sys/socket.h> +#include <netinet/in.h> +#ifdef __ANDROID__ +typedef uint16_t in_port_t; +#endif #else #include <iso646.h> #include <ws2def.h>