From 719286f21b91e1122b23fbc7dbf2190e356af464 Mon Sep 17 00:00:00 2001 From: biancalana Date: Thu, 5 Jul 2012 22:07:15 -0300 Subject: [PATCH] Correct compilation on FreeBSD, set HOST_NAME_MAX to _POSIX_HOST_NAME_MAX if isn't defined --- src/redis.c | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.30.2