diff options
author | Tim Peters <tim.peters@gmail.com> | 2001-06-24 05:08:52 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2001-06-24 05:08:52 (GMT) |
commit | 7e82b9cc6b6e18b9e186f29ca9cc30693011a2a3 (patch) | |
tree | b0f196af5eddedc3dee3290e04ec35842d8f702e /Modules/socketmodule.c | |
parent | b9e9ff1288d9cf2bddbab7e43b7ad8b7eb827870 (diff) | |
download | cpython-7e82b9cc6b6e18b9e186f29ca9cc30693011a2a3.zip cpython-7e82b9cc6b6e18b9e186f29ca9cc30693011a2a3.tar.gz cpython-7e82b9cc6b6e18b9e186f29ca9cc30693011a2a3.tar.bz2 |
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.
Diffstat (limited to 'Modules/socketmodule.c')
-rw-r--r-- | Modules/socketmodule.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index ca7a9c1..c3f03b1 100644 --- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c @@ -187,7 +187,12 @@ Socket methods: #include <GUSI.h> #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 #include "openssl/rsa.h" @@ -198,6 +203,11 @@ Socket methods: #include "openssl/err.h" #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 #include "getaddrinfo.c" @@ -206,6 +216,8 @@ Socket methods: #include "getnameinfo.c" #endif +#endif /* ifndef MS_WINDOWS hack */ + #if defined(MS_WINDOWS) || defined(__BEOS__) /* BeOS suffers from the same socket dichotomy as Win32... - [cjh] */ /* seem to be a few differences in the API */ |