diff --git a/bufferevent-internal.h b/bufferevent-internal.h index 0b73d920..c84f09c0 100644 --- a/bufferevent-internal.h +++ b/bufferevent-internal.h @@ -44,6 +44,9 @@ extern "C" { #ifdef _WIN32 #include #endif +#ifdef EVENT__HAVE_NETINET_IN_H +#include +#endif #ifdef EVENT__HAVE_NETINET_IN6_H #include #endif diff --git a/event_tagging.c b/event_tagging.c index 64b100b8..6459dfa7 100644 --- a/event_tagging.c +++ b/event_tagging.c @@ -40,10 +40,11 @@ #include #include #undef WIN32_LEAN_AND_MEAN -#else -#include #endif +#ifdef EVENT__HAVE_SYS_IOCTL_H +#include +#endif #include #ifdef EVENT__HAVE_SYS_TIME_H #include diff --git a/http.c b/http.c index 99308b39..75b902dc 100644 --- a/http.c +++ b/http.c @@ -35,18 +35,22 @@ #include #endif -#ifdef EVENT__HAVE_SYS_TIME_H -#include -#endif #ifdef HAVE_SYS_IOCCOM_H #include #endif +#ifdef EVENT__HAVE_SYS_RESOURCE_H +#include +#endif +#ifdef EVENT__HAVE_SYS_TIME_H +#include +#endif +#ifdef EVENT__HAVE_SYS_WAIT_H +#include +#endif #ifndef _WIN32 -#include #include #include -#include #else #include #include diff --git a/kqueue.c b/kqueue.c index aa2dcb7b..1f41b5a7 100644 --- a/kqueue.c +++ b/kqueue.c @@ -50,7 +50,7 @@ /* Some platforms apparently define the udata field of struct kevent as * intptr_t, whereas others define it as void*. There doesn't seem to be an * easy way to tell them apart via autoconf, so we need to use OS macros. */ -#if defined(EVENT__HAVE_INTTYPES_H) && !defined(__OpenBSD__) && !defined(__FreeBSD__) && !defined(__darwin__) && !defined(__APPLE__) +#if defined(EVENT__HAVE_INTTYPES_H) && !defined(__OpenBSD__) && !defined(__FreeBSD__) && !defined(__darwin__) && !defined(__APPLE__) && !defined(__CloudABI__) #define PTR_TO_UDATA(x) ((intptr_t)(x)) #define INT_TO_UDATA(x) ((intptr_t)(x)) #else