diff options
| author | Martin v. Löwis <martin@v.loewis.de> | 2001-07-24 06:33:08 +0000 |
|---|---|---|
| committer | Martin v. Löwis <martin@v.loewis.de> | 2001-07-24 06:33:08 +0000 |
| commit | 791bfda2b364ec91e5affab2fc0a60ac1701f392 (patch) | |
| tree | 686873e043a38e6326b17d07d7f641d31df4fd99 /Modules/getaddrinfo.c | |
| parent | c547b46c067656b39c564a84a2979ec985e7b869 (diff) | |
| download | cpython-git-791bfda2b364ec91e5affab2fc0a60ac1701f392.tar.gz | |
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.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/Modules/getaddrinfo.c b/Modules/getaddrinfo.c index 7d07e530cf..67e6ce13d1 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; |
