summaryrefslogtreecommitdiffstats
path: root/compat.h
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2014-10-21 11:00:16 +0100
committerNicholas Marriott <nicholas.marriott@gmail.com>2014-10-21 11:00:16 +0100
commit65257b8e9b55d8d180265d714ba9b3637643c6dc (patch)
tree01a61aff7804d7bc6dddc9ce7d6ad4adcfff2d54 /compat.h
parentb6aef2490f086f3404f439308bb1746ec5134e9a (diff)
OS X lacks HOST_NAME_MAX, reported by Christian Ebert.
Diffstat (limited to 'compat.h')
-rw-r--r--compat.h4
1 files changed, 4 insertions, 0 deletions
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