Commit 6fe9b0c6 authored by Ryan Tandy's avatar Ryan Tandy Committed by Quanah Gibson-Mount
Browse files

ITS#8383 Look for socklen_t in <ws2tcpip.h> too

MinGW targets do not have the <sys/socket.h> 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 <ws2tcpip.h>.

Add <ws2tcpip.h> to the configure check for socklen_t, so that the
defined type is correctly detected.
parent 3347905d
......@@ -2259,6 +2259,9 @@ AC_CHECK_TYPES([ptrdiff_t])
AC_CHECK_TYPE([socklen_t],,, [$ac_includes_default
#include <sys/socket.h>
#include <ws2tcpip.h>
dnl socklen_t-like type in accept(), default socklen_t or int:
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment