Klemens Nanni
2018-09-02 11:34:52 UTC
Another required patch on OpenBSD; can this be merged?
Resending as proper patch ontop of latest HEAD this time, feedback welcome.From bdd6dacd867121c04d02b0287ed033f90050919c Mon Sep 17 00:00:00 2001
From: Klemens Nanni <***@openbsd.org>
Date: Sun, 2 Sep 2018 13:27:34 +0200
Subject: [PATCH 2/2] Add OpenBSD header guard around setsockopt(2)
---
deps/hiredis/net.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/deps/hiredis/net.c b/deps/hiredis/net.c
index 7d412098..206d3048 100644
--- a/deps/hiredis/net.c
+++ b/deps/hiredis/net.c
@@ -141,7 +141,7 @@ int redisKeepAlive(redisContext *c, int interval) {
return REDIS_ERR;
}
#else
-#if defined(__GLIBC__) && !defined(__FreeBSD_kernel__)
+#if defined(__GLIBC__) && !defined(__FreeBSD_kernel__) && !defined(__OpenBSD__)
val = interval;
if (setsockopt(fd, IPPROTO_TCP, TCP_KEEPIDLE, &val, sizeof(val)) < 0) {
__redisSetError(c,REDIS_ERR_OTHER,strerror(errno));
--
2.18.0
--
You received this message because you are subscribed to the Google Groups "Redis DB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to redis-db+***@googlegroups.com.
To post to this group, send email to redis-***@googlegroups.com.
Visit this group at https://groups.google.com/group/redis-db.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "Redis DB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to redis-db+***@googlegroups.com.
To post to this group, send email to redis-***@googlegroups.com.
Visit this group at https://groups.google.com/group/redis-db.
For more options, visit https://groups.google.com/d/optout.