[Python-checkins] CVS: python/dist/src/Modules socketmodule.c,1.144,1.145
Tim Peters
tim_one@users.sourceforge.net
Sat, 23 Jun 2001 22:08:54 -0700
Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv18880/python/dist/src/Modules
Modified Files:
socketmodule.c
Log Message:
Pure brute-force hackery to allow Python to build on Windows again,
because I need to make progress and don't have time now to think about
whatever it is the new code is trying to accomplish.
Index: socketmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/socketmodule.c,v
retrieving revision 1.144
retrieving revision 1.145
diff -C2 -r1.144 -r1.145
*** socketmodule.c 2001/06/23 16:30:13 1.144
--- socketmodule.c 2001/06/24 05:08:52 1.145
***************
*** 188,192 ****
--- 188,197 ----
#endif
+ /* XXX 24-Jun-2000 Tim: I have no idea what the code inside this block is
+ trying to do, and don't have time to look. Looks like Unix-specific code
+ in those files, though, which will never compile on Windows. */
+ #ifndef MS_WINDOWS
#include "addrinfo.h"
+ #endif /* ifndef MS_WINDOWS hack */
#ifdef USE_SSL
***************
*** 199,202 ****
--- 204,212 ----
#endif /* USE_SSL */
+ /* XXX 24-Jun-2000 Tim: I have no idea what the code inside this block is
+ trying to do, and don't have time to look. Looks like Unix-specific code
+ in those files, though, which will never compile on Windows. */
+ #ifndef MS_WINDOWS
+
/* I know this is a bad practice, but it is the easiest... */
#ifndef HAVE_GETADDRINFO
***************
*** 206,209 ****
--- 216,221 ----
#include "getnameinfo.c"
#endif
+
+ #endif /* ifndef MS_WINDOWS hack */
#if defined(MS_WINDOWS) || defined(__BEOS__)