aboutsummaryrefslogtreecommitdiffstats
path: root/databases
diff options
context:
space:
mode:
authorbdrewery <bdrewery@FreeBSD.org>2014-09-17 23:56:18 +0800
committerbdrewery <bdrewery@FreeBSD.org>2014-09-17 23:56:18 +0800
commit8f2e9a7b1dd3d13f3ab727487fac15a196c2a5bb (patch)
treee25787fb799cbe22509910f8a7a3b35622ece57d /databases
parent36447a140ac3a7078fa7462c45367097b5ca3c87 (diff)
downloadfreebsd-ports-gnome-8f2e9a7b1dd3d13f3ab727487fac15a196c2a5bb.tar.gz
freebsd-ports-gnome-8f2e9a7b1dd3d13f3ab727487fac15a196c2a5bb.tar.zst
freebsd-ports-gnome-8f2e9a7b1dd3d13f3ab727487fac15a196c2a5bb.zip
- Fix build on 8.x which does not have TCP_KEEPIDLE
Approved by: maintainer
Diffstat (limited to 'databases')
-rw-r--r--databases/redis/files/patch-deps-hiredis-net.c12
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));