bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-gnulib] mingw32 and sockets


From: Bruno Haible
Subject: Re: [bug-gnulib] mingw32 and sockets
Date: Thu, 22 Sep 2005 15:27:38 +0200
User-agent: KMail/1.5

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]