diff options
author | Damien Miller <djm@mindrot.org> | 2003-02-06 10:50:42 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2003-02-06 10:50:42 +1100 |
commit | 850b942037d527117a38d4e0350a5ee786020779 (patch) | |
tree | 7c82c09170f2a3949ee444b786cdc26acadc9f63 /openbsd-compat/fake-getaddrinfo.h | |
parent | 4b0f1ad4dbf1e3c42e9043ce0b0739a89f5b4c86 (diff) |
- (djm) Teach fake-getaddrinfo to use getservbyname() when provided a
string service name. Suggested by markus@, review by itojun@
Diffstat (limited to 'openbsd-compat/fake-getaddrinfo.h')
-rw-r--r-- | openbsd-compat/fake-getaddrinfo.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openbsd-compat/fake-getaddrinfo.h b/openbsd-compat/fake-getaddrinfo.h index afd0226e2..a14a2cc11 100644 --- a/openbsd-compat/fake-getaddrinfo.h +++ b/openbsd-compat/fake-getaddrinfo.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $Id: fake-getaddrinfo.h,v 1.2 2001/02/09 01:55:36 djm Exp $ */ | 1 | /* $Id: fake-getaddrinfo.h,v 1.3 2003/02/05 23:50:43 djm Exp $ */ |
2 | 2 | ||
3 | #ifndef _FAKE_GETADDRINFO_H | 3 | #ifndef _FAKE_GETADDRINFO_H |
4 | #define _FAKE_GETADDRINFO_H | 4 | #define _FAKE_GETADDRINFO_H |
@@ -37,7 +37,7 @@ int getaddrinfo(const char *hostname, const char *servname, | |||
37 | #endif /* !HAVE_GETADDRINFO */ | 37 | #endif /* !HAVE_GETADDRINFO */ |
38 | 38 | ||
39 | #ifndef HAVE_GAI_STRERROR | 39 | #ifndef HAVE_GAI_STRERROR |
40 | char *gai_strerror(int ecode); | 40 | const char *gai_strerror(int ecode); |
41 | #endif /* !HAVE_GAI_STRERROR */ | 41 | #endif /* !HAVE_GAI_STRERROR */ |
42 | 42 | ||
43 | #ifndef HAVE_FREEADDRINFO | 43 | #ifndef HAVE_FREEADDRINFO |