summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Bigonville <bigon@bigon.be>2013-07-09 15:53:11 +0200
committerStef Walter <stefw@redhat.com>2013-07-09 16:08:57 +0200
commit9fe0c385107a1bb0c2b0f250a08a5df4c485556c (patch)
tree9ed0caa1f59c57c02fb0626fa7c9e4d878460128
parent9774ca4a17615163913958b26acf0bd566777c02 (diff)
Fix FTBFS on freebsd kernel
Set HOST_NAME_MAX to 255 if this is not already defined in the headers. sysconf(3) manpage indicates that this values shouldn't be less than 255. http://bugs.freedesktop.org/show_bug.cgi?id=66456
-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)