work around missing HOST_NAME_MAX too

This commit is contained in:
Omar Polo 2022-10-30 07:40:27 +00:00
parent fad3441ba9
commit 8141737318

7
configure vendored
View File

@ -435,6 +435,13 @@ cat <<__HEREDOC__
# define LOGIN_NAME_MAX 32 # define LOGIN_NAME_MAX 32
# endif # endif
#endif #endif
#ifndef HOST_NAME_MAX
# if defined(_POSIX_HOST_NAME_MAX)
# define HOST_NAME_MAX _POSIX_HOST_NAME_MAX
# else
# define HOST_NAME_MAX 255
#endif
__HEREDOC__ __HEREDOC__
echo "file config.h: written" 1>&2 echo "file config.h: written" 1>&2