diff options
Diffstat (limited to 'source3/nsswitch')
-rw-r--r-- | source3/nsswitch/wins.c | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/source3/nsswitch/wins.c b/source3/nsswitch/wins.c index b8fad9f973..2ecdbf1c51 100644 --- a/source3/nsswitch/wins.c +++ b/source3/nsswitch/wins.c @@ -319,5 +319,19 @@ _nss_wins_gethostbyname_r(const char *name, struct hostent *he, return NSS_STATUS_SUCCESS; } -#endif + +NSS_STATUS +_nss_wins_gethostbyname2_r(const char *name, int af, struct hostent *he, + char *buffer, size_t buflen, int *errnop, + int *h_errnop) +{ + if(af!=AF_INET) { + *h_errnop = NO_DATA; + *errnop = EAFNOSUPPORT; + return NSS_STATUS_UNAVAIL; + } + + return _nss_wins_gethostbyname_r(name,he,buffer,buflen,errnop,h_errnop); +} +#endif |