diff options
-rw-r--r-- | defines.h | 1 | ||||
-rw-r--r-- | includes.h | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -106,6 +106,7 @@ enum | |||
106 | #endif /* MAXPATHLEN */ | 106 | #endif /* MAXPATHLEN */ |
107 | 107 | ||
108 | #ifndef HOST_NAME_MAX | 108 | #ifndef HOST_NAME_MAX |
109 | # include "netdb.h" /* for MAXHOSTNAMELEN */ | ||
109 | # if defined(_POSIX_HOST_NAME_MAX) | 110 | # if defined(_POSIX_HOST_NAME_MAX) |
110 | # define HOST_NAME_MAX _POSIX_HOST_NAME_MAX | 111 | # define HOST_NAME_MAX _POSIX_HOST_NAME_MAX |
111 | # elif defined(MAXHOSTNAMELEN) | 112 | # elif defined(MAXHOSTNAMELEN) |
diff --git a/includes.h b/includes.h index c3034e37d..2893a54cd 100644 --- a/includes.h +++ b/includes.h | |||
@@ -27,7 +27,7 @@ | |||
27 | #include <sys/socket.h> /* For CMSG_* */ | 27 | #include <sys/socket.h> /* For CMSG_* */ |
28 | 28 | ||
29 | #ifdef HAVE_LIMITS_H | 29 | #ifdef HAVE_LIMITS_H |
30 | # include <limits.h> /* For PATH_MAX */ | 30 | # include <limits.h> /* For PATH_MAX, _POSIX_HOST_NAME_MAX */ |
31 | #endif | 31 | #endif |
32 | #ifdef HAVE_BSTRING_H | 32 | #ifdef HAVE_BSTRING_H |
33 | # include <bstring.h> | 33 | # include <bstring.h> |