Changes made to match the ABI of OS X kqueue

This commit is contained in:
Lubos Dolezel 2015-11-21 22:05:04 +01:00
parent fe3c9fd3d3
commit 6853b204a0
3 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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_); \

View File

@ -167,7 +167,7 @@ filter_name(short filt)
"EVFILT_TIMER",
"EVFILT_NETDEV",
"EVFILT_FS",
"EVFILT_LIO",
// "EVFILT_LIO",
"EVFILT_USER"
};