diff --git a/lib/lwres/getnet.c b/lib/lwres/getnet.c index 76ee65dc85..223a9f1563 100644 --- a/lib/lwres/getnet.c +++ b/lib/lwres/getnet.c @@ -46,8 +46,15 @@ setnetent(int stayopen) { } #endif +#ifdef ISC_LWRES_SETNETENTINT +int +endnetent() { + return (0); +} +#else void endnetent() { /* empty */ } +#endif diff --git a/lib/lwres/include/lwres/netdb.h.in b/lib/lwres/include/lwres/netdb.h.in index 375c057d42..5d79dae29a 100644 --- a/lib/lwres/include/lwres/netdb.h.in +++ b/lib/lwres/include/lwres/netdb.h.in @@ -46,6 +46,11 @@ */ @ISC_LWRES_SETNETENTINT@ +/* + * Define if endhostent returns int. + */ +@ISC_LWRES_ENDNETENTINT@ + /* * Define if gethostbyaddr takes a void * as first arguement. */ @@ -61,6 +66,11 @@ */ @ISC_LWRES_ENDHOSTENTINT@ +/* + * Define if h_errno if not defined by netdb.h. + */ +@ISC_LWRES_NEEDHERRNO@ + #ifdef ISC_LWRES_NEEDADDRINFO struct addrinfo { int ai_flags; /* AI_PASSIVE, AI_CANONNAME */