| 1 | #ifndef __KQUEUE_H |
| 2 | #define __KQUEUE_H |
| 3 | |
| 4 | #include <sys/event.h> |
| 5 | |
| 6 | // Due to the renaming of 'struct kevent' and function 'kevent', |
| 7 | // they are wrapped here to avoid conflicts. |
| 8 | int __kevent__(int handle, const struct kevent* changelist, int nchanges, struct kevent* eventlist, int nevents, const struct timespec* timeout) { |
| 9 | return kevent(handle, changelist, nchanges, eventlist, nevents, timeout); |
| 10 | } |
| 11 | |
| 12 | #endif |
| 13 |