[Python-Dev] Cygwin and sockets
Jason Tishler
jason at tishler.net
Sun Aug 8 16:54:42 CEST 2004
Martin,
On Wed, Aug 04, 2004 at 11:22:02AM +0200, "Martin v. L?wis" wrote:
> Tony Meyer wrote:
> >By "anybody", did you mean anybody that you know & trust? <0.5 wink>.
> >
> >I can duplicate the process outlined in the bug report and get the
> >same failure to compile (I've added a note to it).
The following:
http://sf.net/tracker/?group_id=5470&atid=105470&func=detail&aid=728330
broke CVS for Cygwin too.
> This is good enough for the moment, although I would have preferred an
> answer like "I know, and I have a fix sitting on my harddisk" :-)
I know, and I have a fix sitting on my harddisk. :,)
See attach for the details. OK to apply?
BTW, the socket module builds automatically for me. This may be because
I have not upgraded to the latest Cygwin binutils due to the following
issue:
http://cygwin.com/ml/cygwin/2004-07/msg00997.html
Jason
--
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D 8784 1AFD E4CC ECF4 8EF6
-------------- next part --------------
Index: Modules/socketmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/socketmodule.c,v
retrieving revision 1.298
diff -u -p -r1.298 socketmodule.c
--- Modules/socketmodule.c 3 Aug 2004 08:52:45 -0000 1.298
+++ Modules/socketmodule.c 8 Aug 2004 14:29:33 -0000
@@ -285,6 +285,10 @@ int h_errno; /* not used */
#include "addrinfo.h"
#endif
+#if defined(__CYGWIN__)
+#include "addrinfo.h"
+#endif
+
#ifndef HAVE_INET_PTON
int inet_pton(int af, const char *src, void *dst);
const char *inet_ntop(int af, const void *src, char *dst, socklen_t size);
More information about the Python-Dev
mailing list