xcb_window: Use sysconf to discover HOST_NAME_MAX.
POSIX does not mandate HOST_NAME_MAX to be defined and FreeBSD does not define it to encourage people to use sysconf() for discovering its value. If sysconf fails, fallback to _POSIX_HOST_NAME_MAX. Signed-off-by: Rémi Denis-Courmont <remi@remlab.net> (with minor changes)
Showing
Please register or sign in to comment