aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2022-10-30 07:40:27 +0000
committerOmar Polo <op@omarpolo.com>2022-10-30 07:40:27 +0000
commit81417373189ce7ba8b49143cf0a623856e4e84e4 (patch)
tree1c6b3618d547b0b693ab8fe9ece920449d11df1f /configure
parentfad3441ba9cd67fb34b6a5e28b3161c075c0b14f (diff)
work around missing HOST_NAME_MAX too
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure7
1 files changed, 7 insertions, 0 deletions
diff --git a/configure b/configure
index c0d1027..a6f91de 100755
--- a/configure
+++ b/configure
@@ -435,6 +435,13 @@ cat <<__HEREDOC__
# define LOGIN_NAME_MAX 32
# 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__
echo "file config.h: written" 1>&2