summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2015-01-27 23:06:59 +1100
committerDamien Miller <djm@mindrot.org>2015-01-27 23:06:59 +1100
commita2c95c1bf33ea53038324d1fdd774bc953f98236 (patch)
tree395ed03ce58ef1f750b15f11741e5e7ec50dbfd7
parentade31d7b6f608a19b85bee29a7a00b1e636a2919 (diff)
OSX lacks HOST_NAME_MAX, has _POSIX_HOST_NAME_MAX
-rw-r--r--defines.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/defines.h b/defines.h
index 3ac8be987..f489196ed 100644
--- a/defines.h
+++ b/defines.h
@@ -105,6 +105,14 @@ enum
105# endif /* PATH_MAX */ 105# endif /* PATH_MAX */
106#endif /* MAXPATHLEN */ 106#endif /* MAXPATHLEN */
107 107
108#ifndef HOST_NAME_MAX
109# if defined(_POSIX_HOST_NAME_MAX)
110# define HOST_NAME_MAX _POSIX_HOST_NAME_MAX
111# elif defined(MAXHOSTNAMELEN)
112# define HOST_NAME_MAX MAXHOSTNAMELEN
113# endif
114#endif /* HOST_NAME_MAX */
115
108#if defined(HAVE_DECL_MAXSYMLINKS) && HAVE_DECL_MAXSYMLINKS == 0 116#if defined(HAVE_DECL_MAXSYMLINKS) && HAVE_DECL_MAXSYMLINKS == 0
109# define MAXSYMLINKS 5 117# define MAXSYMLINKS 5
110#endif 118#endif