Commit d37d592f authored by michael-grunder's avatar michael-grunder
Browse files

Explicitly set errno to ENOTSUP on unsupported OS's

parent 3f503b6f
...@@ -234,6 +234,7 @@ int redisContextSetTcpUserTimeout(redisContext *c, unsigned int timeout) { ...@@ -234,6 +234,7 @@ int redisContextSetTcpUserTimeout(redisContext *c, unsigned int timeout) {
res = setsockopt(c->fd, IPPROTO_TCP, TCP_USER_TIMEOUT, &timeout, sizeof(timeout)); res = setsockopt(c->fd, IPPROTO_TCP, TCP_USER_TIMEOUT, &timeout, sizeof(timeout));
#else #else
res = -1; res = -1;
errno = ENOTSUP;
(void)timeout; (void)timeout;
#endif #endif
if (res == -1) { if (res == -1) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment