summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeoff Garside <geoff@geoffgarside.co.uk>2011-09-20 00:00:14 +0100
committerantirez <antirez@gmail.com>2013-07-08 15:55:39 +0200
commitb39e827d22cbec5752a2a70d7b350f2215c385e2 (patch)
tree4c1f1e5641d82db88f8517c02aea8c8e451c2bc9
parent9cfa02fe734cce966385169427511e8d282fb5a7 (diff)
downloadredis-b39e827d22cbec5752a2a70d7b350f2215c385e2.tar.gz
Add missing includes for getpeername.
getpeername(2) requires <sys/socket.h> which on some systems also requires <sys/types.h>. Include both to avoid compilation warnings.
-rw-r--r--src/cluster.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cluster.c b/src/cluster.c
index dacddbcc0..9f789d940 100644
--- a/src/cluster.c
+++ b/src/cluster.c
@@ -31,6 +31,8 @@
#include "redis.h"
#include "endianconv.h"
+#include <sys/types.h>
+#include <sys/socket.h>
#include <arpa/inet.h>
#include <fcntl.h>
#include <unistd.h>