12345678910111213 |
- $OpenBSD: patch-deps_hiredis_net_c,v 1.1 2014/07/12 09:53:57 dcoppa Exp $
- --- deps/hiredis/net.c.orig Mon Jun 23 16:56:18 2014
- +++ deps/hiredis/net.c Sat Jul 12 11:41:26 2014
- @@ -138,7 +138,7 @@ int redisKeepAlive(redisContext *c, int interval) {
- return REDIS_ERR;
- }
- #else
- -#ifndef __sun
- +#if !defined(__sun) && !defined(__OpenBSD__)
- val = interval;
- if (setsockopt(fd, IPPROTO_TCP, TCP_KEEPIDLE, &val, sizeof(val)) < 0) {
- __redisSetError(c,REDIS_ERR_OTHER,strerror(errno));
|