diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-02-02 08:10:32 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-02-02 08:10:32 +0000 |
commit | 25c3ba8c71e5e58b0dca0e190bb0030ed000eb7f (patch) | |
tree | 6e08147177cf566e36cc9ad91753df6b554f339e /ext/socket | |
parent | c91a4a38a570709bc3042b5fa30f6e5c63de8292 (diff) | |
download | ruby-25c3ba8c71e5e58b0dca0e190bb0030ed000eb7f.tar.gz ruby-25c3ba8c71e5e58b0dca0e190bb0030ed000eb7f.tar.xz ruby-25c3ba8c71e5e58b0dca0e190bb0030ed000eb7f.zip |
2000-02-02
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@613 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/socket')
-rw-r--r-- | ext/socket/getaddrinfo.c | 10 | ||||
-rw-r--r-- | ext/socket/getnameinfo.c | 9 |
2 files changed, 11 insertions, 8 deletions
diff --git a/ext/socket/getaddrinfo.c b/ext/socket/getaddrinfo.c index ebb03fe95..d89c7851b 100644 --- a/ext/socket/getaddrinfo.c +++ b/ext/socket/getaddrinfo.c @@ -130,6 +130,11 @@ static struct afd { #define PTON_MAX 4 #endif +#ifndef INET6 +#ifndef NT +extern int h_errno; +#endif +#endif static int get_name __P((const char *, struct afd *, struct addrinfo **, char *, struct addrinfo *, @@ -575,11 +580,6 @@ get_addr(hostname, af, res, pai, port0) struct afd *afd; int i, error = 0, h_error; char *ap; -#ifndef INET6 -#ifndef NT - extern int h_errno; -#endif -#endif top = NULL; sentinel.ai_next = NULL; diff --git a/ext/socket/getnameinfo.c b/ext/socket/getnameinfo.c index cb65e4c07..6a71d1d6f 100644 --- a/ext/socket/getnameinfo.c +++ b/ext/socket/getnameinfo.c @@ -64,6 +64,12 @@ #include "addrinfo.h" #include "sockport.h" +#ifndef INET6 +#ifndef NT +extern int h_errno; +#endif +#endif + #define SUCCESS 0 #define ANY 0 #define YES 1 @@ -149,9 +155,6 @@ getnameinfo(sa, salen, host, hostlen, serv, servlen, flags) int h_error; char numserv[512]; char numaddr[512]; -#ifndef NT - extern int h_errno; -#endif if (sa == NULL) return ENI_NOSOCKET; |