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.
This commit is contained in:
Geoff Garside 2011-09-20 00:00:14 +01:00 committed by antirez
parent a6c9ad267c
commit cc9c474c60

View File

@ -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>