patch-deps_hiredis_net_c 508 B

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