#ifdef HAVE_EPOLL
#include "ae_epoll.c"
#else
-#include "ae_select.c"
+ #ifdef HAVE_KQUEUE
+ #include "ae_kqueue.c"
+ #else
+ #include "ae_select.c"
+ #endif
#endif
aeEventLoop *aeCreateEventLoop(void) {
}
}
-void aeMain(aeEventLoop *eventLoop)
-{
+void aeMain(aeEventLoop *eventLoop) {
eventLoop->stop = 0;
while (!eventLoop->stop)
aeProcessEvents(eventLoop, AE_ALL_EVENTS);
}
+
+char *aeGetApiName(void) {
+ return aeApiName();
+}