diff options
author | Bryan Drewery <bdrewery@FreeBSD.org> | 2014-09-17 15:56:18 +0000 |
---|---|---|
committer | Bryan Drewery <bdrewery@FreeBSD.org> | 2014-09-17 15:56:18 +0000 |
commit | 0272bb88ae8a0cad42cd1e7b826b04612164c62e (patch) | |
tree | e25787fb799cbe22509910f8a7a3b35622ece57d /databases | |
parent | - Update to 3.0.19 (diff) |
- Fix build on 8.x which does not have TCP_KEEPIDLE
Approved by: maintainer
Notes
Notes:
svn path=/head/; revision=368392
Diffstat (limited to 'databases')
-rw-r--r-- | databases/redis/files/patch-deps-hiredis-net.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/databases/redis/files/patch-deps-hiredis-net.c b/databases/redis/files/patch-deps-hiredis-net.c new file mode 100644 index 000000000000..c9d361732901 --- /dev/null +++ b/databases/redis/files/patch-deps-hiredis-net.c @@ -0,0 +1,12 @@ +--- deps/hiredis/net.c.orig 2014-09-12 09:16:58.000000000 -0500 ++++ deps/hiredis/net.c 2014-09-16 19:45:20.339820576 -0500 +@@ -138,7 +138,8 @@ int redisKeepAlive(redisContext *c, int + return REDIS_ERR; + } + #else +-#ifndef __sun ++#if !defined(__sun) && defined(TCP_KEEPIDLE) && defined(TCP_KEEPINTVL) && \ ++ defined(TCP_KEEPCNT) + val = interval; + if (setsockopt(fd, IPPROTO_TCP, TCP_KEEPIDLE, &val, sizeof(val)) < 0) { + __redisSetError(c,REDIS_ERR_OTHER,strerror(errno)); |