Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7e82b9c

Browse files
committed
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.
1 parent b9e9ff1 commit 7e82b9c

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

Modules/socketmodule.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,12 @@ Socket methods:
187187
#include <GUSI.h>
188188
#endif
189189

190+
/* XXX 24-Jun-2000 Tim: I have no idea what the code inside this block is
191+
trying to do, and don't have time to look. Looks like Unix-specific code
192+
in those files, though, which will never compile on Windows. */
193+
#ifndef MS_WINDOWS
190194
#include "addrinfo.h"
195+
#endif /* ifndef MS_WINDOWS hack */
191196

192197
#ifdef USE_SSL
193198
#include "openssl/rsa.h"
@@ -198,6 +203,11 @@ Socket methods:
198203
#include "openssl/err.h"
199204
#endif /* USE_SSL */
200205

206+
/* XXX 24-Jun-2000 Tim: I have no idea what the code inside this block is
207+
trying to do, and don't have time to look. Looks like Unix-specific code
208+
in those files, though, which will never compile on Windows. */
209+
#ifndef MS_WINDOWS
210+
201211
/* I know this is a bad practice, but it is the easiest... */
202212
#ifndef HAVE_GETADDRINFO
203213
#include "getaddrinfo.c"
@@ -206,6 +216,8 @@ Socket methods:
206216
#include "getnameinfo.c"
207217
#endif
208218

219+
#endif /* ifndef MS_WINDOWS hack */
220+
209221
#if defined(MS_WINDOWS) || defined(__BEOS__)
210222
/* BeOS suffers from the same socket dichotomy as Win32... - [cjh] */
211223
/* seem to be a few differences in the API */

0 commit comments

Comments
 (0)