diff Modules/socketmodule.c @ 18246:c4db09b87424 legacy-trunk

Patch #401196: Configuration machinery for IPv6. Contributed by Jun-ichiro "itojun" Hagino. get{addr,name}info emulation code taken from WIDE.
author Martin v. Löwis <martin@v.loewis.de>
date Sat, 23 Jun 2001 16:30:13 +0000
parents 3380279612a3
children 9f1dfa786ba6
line wrap: on
line diff
--- a/Modules/socketmodule.c	Sat Jun 23 16:26:44 2001 +0000
+++ b/Modules/socketmodule.c	Sat Jun 23 16:30:13 2001 +0000
@@ -187,6 +187,8 @@
 #include <GUSI.h>
 #endif
 
+#include "addrinfo.h"
+
 #ifdef USE_SSL
 #include "openssl/rsa.h"
 #include "openssl/crypto.h"
@@ -196,6 +198,14 @@
 #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 */