mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-31 10:46:16 +00:00
Attempt to fix build on 8.x.
This commit is contained in:
parent
b480e098fc
commit
36586af30c
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=370239
12
databases/redis-devel/files/patch-deps-hiredis-net.c
Normal file
12
databases/redis-devel/files/patch-deps-hiredis-net.c
Normal file
@ -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));
|
Loading…
Reference in New Issue
Block a user