From 65257b8e9b55d8d180265d714ba9b3637643c6dc Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Tue, 21 Oct 2014 11:00:16 +0100 Subject: OS X lacks HOST_NAME_MAX, reported by Christian Ebert. --- compat.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'compat.h') diff --git a/compat.h b/compat.h index 2e433a09..5f3ff8fc 100644 --- a/compat.h +++ b/compat.h @@ -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 -- cgit v1.2.3