From 7c5e8c323433d7a5e64ea06d9dde42e74d1622a0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Adrien=20B=C3=A9raud?= <adrien.beraud@savoirfairelinux.com>
Date: Wed, 12 Oct 2016 14:38:39 -0400
Subject: [PATCH] sockaddr: add missing include for Win32

---
 include/opendht/sockaddr.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/include/opendht/sockaddr.h b/include/opendht/sockaddr.h
index d7de428f..4a3ccd40 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 {
-- 
GitLab