summaryrefslogtreecommitdiff
path: root/adapters/libuv.h
diff options
context:
space:
mode:
Diffstat (limited to 'adapters/libuv.h')
-rw-r--r--adapters/libuv.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/adapters/libuv.h b/adapters/libuv.h
index 39ef7cf..7aac127 100644
--- a/adapters/libuv.h
+++ b/adapters/libuv.h
@@ -106,7 +106,7 @@ static int redisLibuvAttach(redisAsyncContext* ac, uv_loop_t* loop) {
memset(p, 0, sizeof(*p));
- if (uv_poll_init(loop, &p->handle, c->fd) != 0) {
+ if (uv_poll_init_socket(loop, &p->handle, c->fd) != 0) {
return REDIS_ERR;
}