Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.openwrt.org/project/libubox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2010-12-05 02:38:58 +0300
committerFelix Fietkau <nbd@openwrt.org>2010-12-05 02:38:58 +0300
commit0d1a602dcfe4e13e470a0c0bb23e1d99be3f15b5 (patch)
treecd8554c67b752bff18404a73828e9a810aa3af34 /uloop.h
parent62c3e6761652a1fdf4e18fe18fe1cf2d0d314783 (diff)
port uloop to BSD kqueue
Diffstat (limited to 'uloop.h')
-rw-r--r--uloop.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/uloop.h b/uloop.h
index f84050a..35ee3a5 100644
--- a/uloop.h
+++ b/uloop.h
@@ -22,6 +22,13 @@
#include <sys/time.h>
#include <stdbool.h>
+#include <stdint.h>
+
+#if defined(__APPLE__) || defined(__FreeBSD__)
+#define USE_KQUEUE
+#else
+#define USE_EPOLL
+#endif
struct uloop_fd;
struct uloop_timeout;
@@ -40,6 +47,9 @@ struct uloop_fd
bool eof;
bool error;
bool registered;
+#ifdef USE_KQUEUE
+ uint8_t kqflags;
+#endif
};
struct uloop_timeout