summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Rice <tim@multitalents.net>2015-02-23 21:51:33 -0800
committerTim Rice <tim@multitalents.net>2015-02-23 21:51:33 -0800
commit676c38d7cbe65b76bbfff796861bb6615cc6a596 (patch)
tree16bd39eaedfae6e81e6fd6ae93069c58f188da33
parent1221b22023dce38cbc90ba77eae4c5d78c77a5e6 (diff)
portability fix: if we can't dind a better define for HOST_NAME_MAX, use 255
-rw-r--r--defines.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/defines.h b/defines.h
index 1341606a..d99ef68a 100644
--- a/defines.h
+++ b/defines.h
@@ -110,6 +110,8 @@ enum
# define HOST_NAME_MAX _POSIX_HOST_NAME_MAX
# elif defined(MAXHOSTNAMELEN)
# define HOST_NAME_MAX MAXHOSTNAMELEN
+# else
+# define HOST_NAME_MAX 255
# endif
#endif /* HOST_NAME_MAX */