OS X lacks HOST_NAME_MAX, reported by Christian Ebert.

This commit is contained in:
Nicholas Marriott 2014-10-21 11:00:16 +01:00
parent b6aef2490f
commit 65257b8e9b

View File

@ -176,6 +176,10 @@ typedef uint64_t u_int64_t;
#define TTY_NAME_MAX 32
#endif
#ifndef HOST_NAME_MAX
#define HOST_NAME_MAX 255
#endif
#ifndef HAVE_FLOCK
#define LOCK_SH 0
#define LOCK_EX 0