From: biancalana Date: Fri, 6 Jul 2012 01:07:15 +0000 (-0300) Subject: Correct compilation on FreeBSD, set HOST_NAME_MAX to _POSIX_HOST_NAME_MAX if isn... X-Git-Tag: collectd-5.0.5~15 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=719286f21b91e1122b23fbc7dbf2190e356af464;p=collectd.git Correct compilation on FreeBSD, set HOST_NAME_MAX to _POSIX_HOST_NAME_MAX if isn't defined --- diff --git a/src/redis.c b/src/redis.c index b694e09d..86062d9c 100644 --- a/src/redis.c +++ b/src/redis.c @@ -28,6 +28,10 @@ #include #include +#ifndef HOST_NAME_MAX +# define HOST_NAME_MAX _POSIX_HOST_NAME_MAX +#endif + #define REDIS_DEF_HOST "localhost" #define REDIS_DEF_PORT 6379 #define REDIS_DEF_TIMEOUT 2000