From 4b91e2d3faf73ac38c113890c6eb396652f351b6 Mon Sep 17 00:00:00 2001 From: Laurent Bigonville Date: Tue, 9 Jul 2013 15:53:11 +0200 Subject: [PATCH] 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 --- library/adprivate.h | 4 ++++ 1 file changed, 4 insertions(+) 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 +#ifndef HOST_NAME_MAX +#define HOST_NAME_MAX 255 +#endif + /* Utilities */ #if !defined(__cplusplus) && (__GNUC__ > 2) -- 1.8.3.2