summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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