mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
Patch #401196: Configuration machinery for IPv6.
Contributed by Jun-ichiro "itojun" Hagino. get{addr,name}info emulation code taken from WIDE.
This commit is contained in:
parent
e7e03cd0cf
commit
01dfdb3d35
8 changed files with 2197 additions and 344 deletions
|
@ -187,6 +187,8 @@ Socket methods:
|
|||
#include <GUSI.h>
|
||||
#endif
|
||||
|
||||
#include "addrinfo.h"
|
||||
|
||||
#ifdef USE_SSL
|
||||
#include "openssl/rsa.h"
|
||||
#include "openssl/crypto.h"
|
||||
|
@ -196,6 +198,14 @@ Socket methods:
|
|||
#include "openssl/err.h"
|
||||
#endif /* USE_SSL */
|
||||
|
||||
/* I know this is a bad practice, but it is the easiest... */
|
||||
#ifndef HAVE_GETADDRINFO
|
||||
#include "getaddrinfo.c"
|
||||
#endif
|
||||
#ifndef HAVE_GETNAMEINFO
|
||||
#include "getnameinfo.c"
|
||||
#endif
|
||||
|
||||
#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