Simon Josefsson wrote: > Would it be possible to create those three POSIX header files if they > don't exist on the system, and if winsock2.h do exist? The created > files would simply #include <winsock2.h>.
Yes, that's the way I would go. > Creating them would be done > like getopt_.h and others. The complication is that this has to be > done in a sub-directory somehow, so that #include for sys/socket.h > works. Sure. It makes the Makefile.am snippet a little more complicated than for the getopt_.h case, because you need a 'distclean-local' rule that does a 'rmdir sys'. But then it will work as smoothly as getopt_.h. > Perhaps this should be considered a mingw32 bug instead? It would be if the mingw people reach out for POSIX compliance. Do they? I was under the impression that Cygwin attempts to be POSIX compliant, but mingw was designed to be only a thin layer above MSVCRT. Bruno _______________________________________________ bug-gnulib mailing list bug-gnulib@gnu.org http://lists.gnu.org/mailman/listinfo/bug-gnulib