include netdb.h to look for MAXHOSTNAMELEN; ok tim
This commit is contained in:
parent
d1db656021
commit
38806bda6d
|
@ -106,6 +106,7 @@ enum
|
|||
#endif /* MAXPATHLEN */
|
||||
|
||||
#ifndef HOST_NAME_MAX
|
||||
# include "netdb.h" /* for MAXHOSTNAMELEN */
|
||||
# if defined(_POSIX_HOST_NAME_MAX)
|
||||
# define HOST_NAME_MAX _POSIX_HOST_NAME_MAX
|
||||
# elif defined(MAXHOSTNAMELEN)
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
#include <sys/socket.h> /* For CMSG_* */
|
||||
|
||||
#ifdef HAVE_LIMITS_H
|
||||
# include <limits.h> /* For PATH_MAX */
|
||||
# include <limits.h> /* For PATH_MAX, _POSIX_HOST_NAME_MAX */
|
||||
#endif
|
||||
#ifdef HAVE_BSTRING_H
|
||||
# include <bstring.h>
|
||||
|
|
Loading…
Reference in New Issue