Re: Building today's snapshot of GDB with MinGW

Joel Brobecker
2020-07-01T19:30:28Z

> Last, but not least: the test we do in gdbserver/configure for the
> socklen_t data type declaration doesn't work on Windows. We do this:
>
> AC_CHECK_TYPES(socklen_t, [], [],
> [#include <sys/types.h>
> #include <sys/socket.h>
> ])
>
> But on Windows this fails, because sys/socket.h doesn't exist;
> instead, socklen_t is supposed to be defined in ws2tcpip.h. So the
> correct headers inclusion for the test program would be
>
> #include <sys/types.h>
> #if HAVE_SYS_SOCKET_H
> # include <sys/socket.h>
> #elif HAVE_WS2TCPIP_H
> # include <ws2tcpip.h>
>
> Can we please fix this minor issue?

Would you be able to submit a patch?

--
Joel