OS X lacks HOST_NAME_MAX, reported by Christian Ebert.

pull/1/head
Nicholas Marriott 2014-10-21 11:00:16 +01:00
parent b6aef2490f
commit 65257b8e9b
1 changed files with 4 additions and 0 deletions

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