Skip to content

Commit

Permalink
Add missing include of <netinet/in.h>.
Browse files Browse the repository at this point in the history
POSIX states that sockaddr_in6 should be declared in <netinet/in.h>. By
including this header, the code now builds on FreeBSD and CloudABI.
  • Loading branch information
EdSchouten authored and azat committed Sep 10, 2015
1 parent c1404b5 commit b2c68bc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bufferevent-internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b2c68bc

Please sign in to comment.