mirror of
https://github.com/darlinghq/darling-libkqueue.git
synced 2024-11-23 11:49:50 +00:00
Changes made to match the ABI of OS X kqueue
This commit is contained in:
parent
fe3c9fd3d3
commit
6853b204a0
@ -24,7 +24,7 @@ if (DARLING)
|
||||
|
||||
# For epoll
|
||||
include_directories("${DARLING_TOP_DIRECTORY}/src/kernel/emulation/linux/ext")
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -nostdinc -DHAVE_SYS_EVENTFD_H -DHAVE_SYS_SIGNALFD_H -DHAVE_SYS_TIMERFD_H")
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -nostdinc -DHAVE_SYS_EVENTFD_H -DHAVE_SYS_SIGNALFD_H -DHAVE_SYS_TIMERFD_H -ggdb -O0")
|
||||
endif (DARLING)
|
||||
|
||||
#files
|
||||
|
@ -55,9 +55,9 @@ struct timespec;
|
||||
#define EVFILT_TIMER (-7) /* timers */
|
||||
#define EVFILT_NETDEV (-8) /* network devices */
|
||||
#define EVFILT_FS (-9) /* filesystem events */
|
||||
#define EVFILT_LIO (-10) /* attached to lio requests */
|
||||
#define EVFILT_USER (-11) /* User events */
|
||||
#define EVFILT_SYSCOUNT 11
|
||||
//#define EVFILT_LIO (-10) /* attached to lio requests */
|
||||
#define EVFILT_USER (-10) /* User events */
|
||||
#define EVFILT_SYSCOUNT 10
|
||||
|
||||
#define EV_SET(kevp_, a, b, c, d, e, f) do { \
|
||||
struct kevent *kevp = (kevp_); \
|
||||
|
@ -167,7 +167,7 @@ filter_name(short filt)
|
||||
"EVFILT_TIMER",
|
||||
"EVFILT_NETDEV",
|
||||
"EVFILT_FS",
|
||||
"EVFILT_LIO",
|
||||
// "EVFILT_LIO",
|
||||
"EVFILT_USER"
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user