Sane way to fix absence of HOST_NAME_MAX on osx

This commit is contained in:
Alexander Zakharov 2017-10-04 22:28:49 +03:00
parent b71d79cdb1
commit f091a38cff

5
xwin.c
View File

@ -37,6 +37,11 @@
#include <X11/extensions/Xrandr.h>
#endif
#ifdef __APPLE__
#include <sys/param.h>
#define HOST_NAME_MAX MAXHOSTNAMELEN
#endif
extern int g_sizeopt;
extern int g_width;
extern int g_height;