compat: define HOST_NAME_MAX for OSX

Signed-off-by: Yan, Zheng <zyan@redhat.com>
This commit is contained in:
Yan, Zheng 2016-05-27 18:17:13 +08:00
parent c80eb1b5c0
commit 200406fad5
2 changed files with 2 additions and 0 deletions

View File

@ -7,6 +7,7 @@
#include "common/config.h"
#include "include/str_list.h"
#include "common/debug.h"
#include "include/compat.h"
#include <common/SubProcess.h>

View File

@ -69,6 +69,7 @@
/* PATH_MAX */
#include <limits.h>
#define EREMOTEIO 121
#define HOST_NAME_MAX 255
#endif /* __APPLE__ */
/* O_LARGEFILE is not defined/required on OSX/FreeBSD */