The functions are all declared in <netdb.h>. <sys/socket.h> is only
needed for the AF_* constants.
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
.PP
.BI "struct hostent *gethostbyname(const char *" name );
.PP
-.BR "#include <sys/socket.h>" " /* for AF_INET */"
.BI "struct hostent *gethostbyaddr(const void *" addr ,
.BI " socklen_t " len ", int " type );
.PP
Valid address types are
.B AF_INET
and
-.BR AF_INET6 .
+.BR AF_INET6
+(defined in
+.IR <sys/socket.h> ).
The host address argument is a pointer to a struct of a type depending
on the address type, for example a \fIstruct in_addr *\fP (probably
obtained via a call to