int endhostent support

This commit is contained in:
Mark Andrews 2000-01-24 12:10:49 +00:00
parent 23693a3897
commit f1890a6c56
2 changed files with 17 additions and 0 deletions

View file

@ -46,8 +46,15 @@ setnetent(int stayopen) {
}
#endif
#ifdef ISC_LWRES_SETNETENTINT
int
endnetent() {
return (0);
}
#else
void
endnetent() {
/* empty */
}
#endif

View file

@ -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 */