Hello, David Hoyt wrote: > A build using the latest from MinGW-w64 fails with a redefinition error b/c > it finds socklen_t in two places. Configure finds both winsock2.h and > ws2tcipip.h and when it finds winsock.h, it does a "typedef int socklen_t" > in gl/sys_socket.in.h but this is already defined in ws2tcpip.h.
Can you please provide a minimal reproducible sample? That is, can you give an input file that, when compiled with gnulib's <sys/socket.h>, yields an error? Also, please show the compiler command-line, and the error that you get. Among the first things I would try then is to see whether the error also occurs on mingw. I'm asking also because Ozkan Sezer blamed neon, not gnulib, for the error you were seeing [1]. Bruno [1] http://sourceforge.net/tracker/index.php?func=detail&aid=3054607&group_id=202880&atid=983356