summaryrefslogtreecommitdiff
path: root/kqueue.c
diff options
context:
space:
mode:
authorEd Schouten <ed@nuxi.nl>2015-08-25 23:31:07 +0200
committerAzat Khuzhin <a3at.mail@gmail.com>2015-09-10 12:15:42 +0300
commit5602e451ce872d7d60c640590113c5a81c3fc389 (patch)
tree4aae9eb2bf82fdf52ed07ae3964f060a5b7b30f7 /kqueue.c
parentb2c68bc22b43d242744ea52da4f6606cd2c736cf (diff)
downloadlibevent-5602e451ce872d7d60c640590113c5a81c3fc389.tar.gz
Assume that ke_udata is an integer type on CloudABI.
Diffstat (limited to 'kqueue.c')
-rw-r--r--kqueue.c2
1 files changed, 1 insertions, 1 deletions
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