Commit Diff
Diff:
fad3441ba9cd67fb34b6a5e28b3161c075c0b14f
81417373189ce7ba8b49143cf0a623856e4e84e4
Commit:
81417373189ce7ba8b49143cf0a623856e4e84e4
Tree:
1c6b3618d547b0b693ab8fe9ece920449d11df1f
Author:
Omar Polo <op@omarpolo.com>
Date:
Sun Oct 30 07:40:27 2022 UTC
Message:
work around missing HOST_NAME_MAX too
commit - fad3441ba9cd67fb34b6a5e28b3161c075c0b14f
commit + 81417373189ce7ba8b49143cf0a623856e4e84e4
blob - c0d10271c63c76e9dced4a8fd13afd7268055ce0
blob + a6f91de9f01024ee6b61bd326f5069f741d4a780
--- configure
+++ configure
@@ -435,6 +435,13 @@ __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
Omar Polo