forked from lda/telodendria
If HOST_NAME_MAX is undefined, use _POSIX_HOST_NAME_MAX.
Probably good enough. Closes #2
This commit is contained in:
parent
f8d3e54fec
commit
bf1ce839d0
1 changed files with 4 additions and 0 deletions
|
@ -37,6 +37,10 @@
|
|||
#include <string.h>
|
||||
#include <limits.h>
|
||||
|
||||
#ifndef HOST_NAME_MAX
|
||||
#define HOST_NAME_MAX _POSIX_HOST_NAME_MAX
|
||||
#endif
|
||||
|
||||
#define CONFIG_REQUIRE(key, type) \
|
||||
value = HashMapGet(config, key); \
|
||||
if (!value) \
|
||||
|
|
Loading…
Reference in a new issue