From bb1c90fb49b016c2b15f57cfa6e8f1e2f6d47ae3 Mon Sep 17 00:00:00 2001 From: Alexander Zakharov Date: Fri, 18 Jan 2019 13:01:12 +0300 Subject: [PATCH] Fix FreeBSD build --- xwin.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xwin.c b/xwin.c index dd1f4ae..9569d0b 100644 --- a/xwin.c +++ b/xwin.c @@ -47,6 +47,10 @@ #define HOST_NAME_MAX MAXHOSTNAMELEN #endif +#ifdef __FreeBSD__ +#define HOST_NAME_MAX _POSIX_HOST_NAME_MAX +#endif + extern RD_BOOL g_user_quit; extern RD_BOOL g_exit_mainloop;