cmogstored 1.8.1 - use default system stack size
[cmogstored.git] / queue_kqueue.h
blob72c030ec3e5dd841c746d02e40380262f5b34c23
1 /*
2 * Copyright (C) 2012-2020 all contributors <cmogstored-public@yhbt.net>
3 * License: GPL-3.0+ <https://www.gnu.org/licenses/gpl-3.0.txt>
4 */
5 #ifdef HAVE_KQUEUE
6 #include <sys/types.h>
7 #include <sys/event.h>
8 enum mog_qev {
9 MOG_QEV_RD = EVFILT_READ,
10 MOG_QEV_WR = EVFILT_WRITE,
11 MOG_QEV_RW = 0
13 struct mog_queue;
14 struct mog_fd;
15 #endif /* HAVE_KQUEUE */
17 #if defined(LIBKQUEUE) && (LIBKQUEUE == 1)
18 # define MOG_LIBKQUEUE (true)
19 #else
20 # define MOG_LIBKQUEUE (false)
21 #endif