summaryrefslogtreecommitdiffstats
path: root/Modules/socketmodule.c
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2001-06-23 16:30:13 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2001-06-23 16:30:13 (GMT)
commit01dfdb3d354877db551a9da7138cad8d96a215a3 (patch)
tree9f02f369c0f4d9bb2eb60b949fbebdc43a640cf1 /Modules/socketmodule.c
parente7e03cd0cffbc4087e9baa98ac3eeec42d05310c (diff)
downloadcpython-01dfdb3d354877db551a9da7138cad8d96a215a3.zip
cpython-01dfdb3d354877db551a9da7138cad8d96a215a3.tar.gz
cpython-01dfdb3d354877db551a9da7138cad8d96a215a3.tar.bz2
Patch #401196: Configuration machinery for IPv6.
Contributed by Jun-ichiro "itojun" Hagino. get{addr,name}info emulation code taken from WIDE.
Diffstat (limited to 'Modules/socketmodule.c')
-rw-r--r--Modules/socketmodule.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
index 062f88d..ca7a9c1 100644
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -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 */