From 85c6bfb02a2dacb9ccd0885f8c1cf807447ae1eb Mon Sep 17 00:00:00 2001 From: Chris Lamb Date: Mon, 14 Jul 2014 22:33:46 +0100 Subject: Fix build under kfreebsd Signed-off-by: Chris Lamb [Instead of checking for "not solaris" we feature detect for availability of what we want, then remove the system that advertises compatability but doesn't actually provide it (given our assumptions about what we're guarding).] Closes #254 --- net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net.c b/net.c index 0bea81e..0059066 100644 --- a/net.c +++ b/net.c @@ -138,7 +138,7 @@ int redisKeepAlive(redisContext *c, int interval) { return REDIS_ERR; } #else -#ifndef __sun +#if defined(__GLIBC__) && !defined(__FreeBSD_kernel__) val = interval; if (setsockopt(fd, IPPROTO_TCP, TCP_KEEPIDLE, &val, sizeof(val)) < 0) { __redisSetError(c,REDIS_ERR_OTHER,strerror(errno)); -- cgit v1.2.3