Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Sep 2014 15:56:18 +0000 (UTC)
From:      Bryan Drewery <bdrewery@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r368392 - head/databases/redis/files
Message-ID:  <201409171556.s8HFuIkx024418@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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));



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201409171556.s8HFuIkx024418>