From 0e82232d1d62c4a42dbf1ce48b00583991810dd5 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Fri, 14 Oct 2016 03:48:51 -0400 Subject: [PATCH] Fix "WSAStringToAddress was not declared in this scope" on Cygwin (Issue 322) --- socketft.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/socketft.cpp b/socketft.cpp index eda6b2ed..b44c0592 100644 --- a/socketft.cpp +++ b/socketft.cpp @@ -60,8 +60,8 @@ const int SOCKET_EWOULDBLOCK = EWOULDBLOCK; #define MAX_ADDRSTRLEN (INET6_ADDRSTRLEN > INET_ADDRSTRLEN ? INET6_ADDRSTRLEN : INET_ADDRSTRLEN) -#if defined(CRYPTOPP_WIN32_AVAILABLE) -// http://stackoverflow.com/a/20816961 +// Also see http://stackoverflow.com/a/20816961 and http://github.com/weidai11/cryptopp/issues/322 +#if defined(USE_WINDOWS_STYLE_SOCKETS) int inet_pton(int af, const char *src, void *dst) { #if CRYPTOPP_MSC_VERSION