summaryrefslogtreecommitdiff
path: root/util/sbase/compat.h
diff options
context:
space:
mode:
Diffstat (limited to 'util/sbase/compat.h')
-rw-r--r--util/sbase/compat.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/util/sbase/compat.h b/util/sbase/compat.h
new file mode 100644
index 00000000..e2154a62
--- /dev/null
+++ b/util/sbase/compat.h
@@ -0,0 +1,6 @@
+/* See LICENSE file for copyright and license details. */
+#include <limits.h>
+
+#ifndef HOST_NAME_MAX
+#define HOST_NAME_MAX _POSIX_HOST_NAME_MAX
+#endif