summaryrefslogtreecommitdiff
path: root/library/adprivate.h
diff options
context:
space:
mode:
Diffstat (limited to 'library/adprivate.h')
-rw-r--r--library/adprivate.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/library/adprivate.h b/library/adprivate.h
index 1c08a92..3eafeb8 100644
--- a/library/adprivate.h
+++ b/library/adprivate.h
@@ -34,6 +34,10 @@
#include <ldap.h>
+#ifndef HOST_NAME_MAX
+#define HOST_NAME_MAX 255
+#endif
+
/* Utilities */
#if !defined(__cplusplus) && (__GNUC__ > 2)