From b08b2f14f20e0dbaa00fc2c70347d578c70e49da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20B=C3=A9raud?= <adrien.beraud@savoirfairelinux.com> Date: Fri, 17 Feb 2017 12:09:33 -0500 Subject: [PATCH] sockaddr: add missing header and typedef --- include/opendht/sockaddr.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/opendht/sockaddr.h b/include/opendht/sockaddr.h index b346f72b..d25632d3 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> -- GitLab