If HOST_NAME_MAX is undefined, use _POSIX_HOST_NAME_MAX.

Probably good enough. Closes #2
This commit is contained in:
Jordan Bancino 2023-09-25 16:02:09 -04:00
parent f8d3e54fec
commit bf1ce839d0

View file

@ -37,6 +37,10 @@
#include <string.h> #include <string.h>
#include <limits.h> #include <limits.h>
#ifndef HOST_NAME_MAX
#define HOST_NAME_MAX _POSIX_HOST_NAME_MAX
#endif
#define CONFIG_REQUIRE(key, type) \ #define CONFIG_REQUIRE(key, type) \
value = HashMapGet(config, key); \ value = HashMapGet(config, key); \
if (!value) \ if (!value) \