2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 14:25:15 +00:00

Avoid using HOST_NAME_MAX directly and use sysconf(_SC_HOST_NAME_MAX)

instead.
This commit is contained in:
Todd C. Miller
2015-02-19 20:28:02 -07:00
parent 9b514ed83c
commit be8dbeb22e
13 changed files with 119 additions and 89 deletions

View File

@@ -160,14 +160,6 @@
# endif
#endif
#if defined(HAVE_DECL_HOST_NAME_MAX) && !HAVE_DECL_HOST_NAME_MAX
# if defined(HAVE_DECL__POSIX_HOST_NAME_MAX) && HAVE_DECL__POSIX_HOST_NAME_MAX
# define HOST_NAME_MAX _POSIX_HOST_NAME_MAX
# else
# define HOST_NAME_MAX 255
# endif
#endif
/*
* Posix versions for those without...
*/