svn commit: r368392 - head/databases/redis/files

Bryan Drewery bdrewery at FreeBSD.org
Wed Sep 17 15:56:19 UTC 2014


Author: bdrewery
Date: Wed Sep 17 15:56:18 2014
New Revision: 368392
URL: http://svnweb.freebsd.org/changeset/ports/368392
QAT: https://qat.redports.org/buildarchive/r368392/

Log:
  - Fix build on 8.x which does not have TCP_KEEPIDLE
  
  Approved by:	maintainer

Added:
  head/databases/redis/files/patch-deps-hiredis-net.c   (contents, props changed)

Added: head/databases/redis/files/patch-deps-hiredis-net.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/databases/redis/files/patch-deps-hiredis-net.c	Wed Sep 17 15:56:18 2014	(r368392)
@@ -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));


More information about the svn-ports-head mailing list