mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Port getaddrinfo to MSVC++.
This commit is contained in:
parent
1bdd0f2559
commit
d783041a14
3 changed files with 15 additions and 15 deletions
|
@ -195,12 +195,7 @@ 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"
|
||||
|
@ -211,11 +206,6 @@ 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
|
||||
|
||||
#ifndef HAVE_INET_PTON
|
||||
int inet_pton (int af, char *src, void *dst);
|
||||
char *inet_ntop(int af, void *src, char *dst, socklen_t size);
|
||||
|
@ -229,8 +219,6 @@ char *inet_ntop(int af, void *src, char *dst, socklen_t size);
|
|||
#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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue