]> granicus.if.org Git - libevent/commitdiff
Add missing include of <netinet/in.h>.
authorEd Schouten <ed@nuxi.nl>
Wed, 26 Aug 2015 07:45:23 +0000 (09:45 +0200)
committerAzat Khuzhin <a3at.mail@gmail.com>
Thu, 10 Sep 2015 09:14:35 +0000 (12:14 +0300)
POSIX states that sockaddr_in6 should be declared in <netinet/in.h>. By
including this header, the code now builds on FreeBSD and CloudABI.

bufferevent-internal.h

index 0b73d920c42b39b3c5d3e6715b109e3b245a641c..c84f09c0ddb345f8d3b26e14c22a777d184cd227 100644 (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