• Alexis Ballier's avatar
    xcb_window: Use sysconf to discover HOST_NAME_MAX. · a73ea66e
    Alexis Ballier authored
    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)
    a73ea66e
window.c 10.8 KB