Commit b39e827d authored by Geoff Garside's avatar Geoff Garside Committed by antirez
Browse files

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.
parent 9cfa02fe
...@@ -31,6 +31,8 @@ ...@@ -31,6 +31,8 @@
#include "redis.h" #include "redis.h"
#include "endianconv.h" #include "endianconv.h"
#include <sys/types.h>
#include <sys/socket.h>
#include <arpa/inet.h> #include <arpa/inet.h>
#include <fcntl.h> #include <fcntl.h>
#include <unistd.h> #include <unistd.h>
......
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