From 6fe9b0c65479363e4f9f03dd85fc81b2940f62df Mon Sep 17 00:00:00 2001 From: Ryan Tandy Date: Sun, 1 Sep 2019 11:53:37 -0700 Subject: [PATCH] ITS#8383 Look for socklen_t in too MinGW targets do not have the header. The configure check would conclude that there is no socklen_t type, resulting in portable.h containing its own definition of socklen_t, which would later conflict with the actual definition in . Add to the configure check for socklen_t, so that the defined type is correctly detected. --- configure.in | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configure.in b/configure.in index b9cf43515f..37293e6187 100644 --- a/configure.in +++ b/configure.in @@ -2259,6 +2259,9 @@ AC_CHECK_TYPES([ptrdiff_t]) AC_CHECK_TYPE([socklen_t],,, [$ac_includes_default #ifdef HAVE_SYS_SOCKET_H #include +#endif +#ifdef HAVE_WINSOCK2 +#include #endif]) dnl socklen_t-like type in accept(), default socklen_t or int: -- 2.47.2