Simon Josefsson wrote: > +# if defined _WIN32 || defined __WIN32__ This is not the right preprocessor test for mingw: It may also evaluate to true on Cygwin. But Cygwin has the right declaration of setsockopt and does not need a fix. The right #if here is
#if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__ or - since you are actually handling a problem in the include files, not in the operating system -: #if defined __MINGW32__ Bruno