]> git.sesse.net Git - vlc/commit
xcb_window: Use sysconf to discover HOST_NAME_MAX.
authorAlexis Ballier <aballier@gentoo.org>
Fri, 10 Jul 2009 13:04:42 +0000 (15:04 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Sat, 11 Jul 2009 10:17:50 +0000 (13:17 +0300)
commita73ea66ebb2b60d1e2e83a9ab17feefb8ad15e16
treeb316d493f25b2876ee54a9904e034fd06622ce0c
parentc6a97a1b0bba035c8c1bb06dcc12ec6c67c2e109
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)
modules/video_output/xcb/window.c