OSX lacks HOST_NAME_MAX, has _POSIX_HOST_NAME_MAX
This commit is contained in:
parent
ade31d7b6f
commit
a2c95c1bf3
|
@ -105,6 +105,14 @@ enum
|
|||
# endif /* PATH_MAX */
|
||||
#endif /* MAXPATHLEN */
|
||||
|
||||
#ifndef HOST_NAME_MAX
|
||||
# if defined(_POSIX_HOST_NAME_MAX)
|
||||
# define HOST_NAME_MAX _POSIX_HOST_NAME_MAX
|
||||
# elif defined(MAXHOSTNAMELEN)
|
||||
# define HOST_NAME_MAX MAXHOSTNAMELEN
|
||||
# endif
|
||||
#endif /* HOST_NAME_MAX */
|
||||
|
||||
#if defined(HAVE_DECL_MAXSYMLINKS) && HAVE_DECL_MAXSYMLINKS == 0
|
||||
# define MAXSYMLINKS 5
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue