]> source.dussan.org Git - tigervnc.git/commit
Fix build on systems without HOST_NAME_MAX 1289/head
authorAlex Richardson <Alexander.Richardson@cl.cam.ac.uk>
Wed, 14 Jul 2021 13:01:15 +0000 (14:01 +0100)
committerAlex Richardson <Alexander.Richardson@cl.cam.ac.uk>
Thu, 15 Jul 2021 08:44:11 +0000 (09:44 +0100)
commite6a5a3684a4ad5907bd6e820d850cca1bbd7d380
treeb974bd8d387d9a2b5f0d08f53446c62e0788cdb5
parentdfc9421dcf0fc97ad99638df501b95cb162e95b2
Fix build on systems without HOST_NAME_MAX

Some operating systems such as FreeBSD don't define a HOST_NAME_MAX
macro. The portable approach to determine the real host name limit is
calling sysconf(_SC_HOST_NAME_MAX) so do that instead.
unix/vncserver/vncsession.c
unix/x0vncserver/x0vncserver.cxx
unix/xserver/hw/vnc/vncExtInit.cc