diff options
author | Damien Miller <djm@mindrot.org> | 2015-01-27 23:06:59 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2015-01-27 23:06:59 +1100 |
commit | a2c95c1bf33ea53038324d1fdd774bc953f98236 (patch) | |
tree | 395ed03ce58ef1f750b15f11741e5e7ec50dbfd7 | |
parent | ade31d7b6f608a19b85bee29a7a00b1e636a2919 (diff) |
OSX lacks HOST_NAME_MAX, has _POSIX_HOST_NAME_MAX
-rw-r--r-- | defines.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 |