summaryrefslogtreecommitdiffstats
path: root/Modules/getaddrinfo.c
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2001-07-24 06:33:08 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2001-07-24 06:33:08 (GMT)
commit791bfda2b364ec91e5affab2fc0a60ac1701f392 (patch)
tree686873e043a38e6326b17d07d7f641d31df4fd99 /Modules/getaddrinfo.c
parentc547b46c067656b39c564a84a2979ec985e7b869 (diff)
downloadcpython-791bfda2b364ec91e5affab2fc0a60ac1701f392.zip
cpython-791bfda2b364ec91e5affab2fc0a60ac1701f392.tar.gz
cpython-791bfda2b364ec91e5affab2fc0a60ac1701f392.tar.bz2
Autocheck for snprintf, and use sprintf if it is not available.
Remove declaration of h_errno, since it is supposedly declared in netdb.h. Changes proposed by itojun.
Diffstat (limited to 'Modules/getaddrinfo.c')
-rw-r--r--Modules/getaddrinfo.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/Modules/getaddrinfo.c b/Modules/getaddrinfo.c
index 7d07e53..67e6ce1 100644
--- a/Modules/getaddrinfo.c
+++ b/Modules/getaddrinfo.c
@@ -544,10 +544,6 @@ get_addr(hostname, af, res, pai, port0)
struct gai_afd *gai_afd;
int i, error = 0, h_error;
char *ap;
-#if !defined(INET6) && !defined(h_errno)
- /* In winsock.h, h_errno is #defined as a function call. */
- extern int h_errno;
-#endif
top = NULL;
sentinel.ai_next = NULL;