Add missing include of <netinet/in.h>.

POSIX states that sockaddr_in6 should be declared in <netinet/in.h>. By
including this header, the code now builds on FreeBSD and CloudABI.
This commit is contained in:
Ed Schouten 2015-08-26 09:45:23 +02:00 committed by Azat Khuzhin
parent c1404b5651
commit b2c68bc22b

View File

@ -44,6 +44,9 @@ extern "C" {
#ifdef _WIN32
#include <ws2tcpip.h>
#endif
#ifdef EVENT__HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef EVENT__HAVE_NETINET_IN6_H
#include <netinet/in6.h>
#endif