diff options
author | Laurent Bigonville <bigon@bigon.be> | 2013-07-09 15:53:11 +0200 |
---|---|---|
committer | Stef Walter <stefw@redhat.com> | 2013-07-09 16:08:57 +0200 |
commit | 9fe0c385107a1bb0c2b0f250a08a5df4c485556c (patch) | |
tree | 9ed0caa1f59c57c02fb0626fa7c9e4d878460128 | |
parent | 9774ca4a17615163913958b26acf0bd566777c02 (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.h | 4 |
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) |