mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-11 13:24:43 -04:00
Merge branch 'cloudabi-fixes-pr-278'
Rebased version of #278 * cloudabi-fixes-pr-278: Assume that ke_udata is an integer type on CloudABI. Add missing include of <netinet/in.h>. Include <sys/ioctl.h>, <sys/resource.h> and <sys/wait.h> optionally.
This commit is contained in:
commit
484d0db0fb
@ -44,6 +44,9 @@ extern "C" {
|
|||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
#include <ws2tcpip.h>
|
#include <ws2tcpip.h>
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef EVENT__HAVE_NETINET_IN_H
|
||||||
|
#include <netinet/in.h>
|
||||||
|
#endif
|
||||||
#ifdef EVENT__HAVE_NETINET_IN6_H
|
#ifdef EVENT__HAVE_NETINET_IN6_H
|
||||||
#include <netinet/in6.h>
|
#include <netinet/in6.h>
|
||||||
#endif
|
#endif
|
||||||
|
@ -40,10 +40,11 @@
|
|||||||
#include <winsock2.h>
|
#include <winsock2.h>
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#undef WIN32_LEAN_AND_MEAN
|
#undef WIN32_LEAN_AND_MEAN
|
||||||
#else
|
|
||||||
#include <sys/ioctl.h>
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef EVENT__HAVE_SYS_IOCTL_H
|
||||||
|
#include <sys/ioctl.h>
|
||||||
|
#endif
|
||||||
#include <sys/queue.h>
|
#include <sys/queue.h>
|
||||||
#ifdef EVENT__HAVE_SYS_TIME_H
|
#ifdef EVENT__HAVE_SYS_TIME_H
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
|
14
http.c
14
http.c
@ -35,18 +35,22 @@
|
|||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef EVENT__HAVE_SYS_TIME_H
|
|
||||||
#include <sys/time.h>
|
|
||||||
#endif
|
|
||||||
#ifdef HAVE_SYS_IOCCOM_H
|
#ifdef HAVE_SYS_IOCCOM_H
|
||||||
#include <sys/ioccom.h>
|
#include <sys/ioccom.h>
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef EVENT__HAVE_SYS_RESOURCE_H
|
||||||
|
#include <sys/resource.h>
|
||||||
|
#endif
|
||||||
|
#ifdef EVENT__HAVE_SYS_TIME_H
|
||||||
|
#include <sys/time.h>
|
||||||
|
#endif
|
||||||
|
#ifdef EVENT__HAVE_SYS_WAIT_H
|
||||||
|
#include <sys/wait.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef _WIN32
|
#ifndef _WIN32
|
||||||
#include <sys/resource.h>
|
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/wait.h>
|
|
||||||
#else
|
#else
|
||||||
#include <winsock2.h>
|
#include <winsock2.h>
|
||||||
#include <ws2tcpip.h>
|
#include <ws2tcpip.h>
|
||||||
|
2
kqueue.c
2
kqueue.c
@ -50,7 +50,7 @@
|
|||||||
/* Some platforms apparently define the udata field of struct kevent as
|
/* 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
|
* 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. */
|
* 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 PTR_TO_UDATA(x) ((intptr_t)(x))
|
||||||
#define INT_TO_UDATA(x) ((intptr_t)(x))
|
#define INT_TO_UDATA(x) ((intptr_t)(x))
|
||||||
#else
|
#else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user