Started working kqueue() backend for OSX and BSD.
This commit is contained in:
13
src/system.h
13
src/system.h
@@ -104,8 +104,19 @@
|
||||
|
||||
#ifdef __linux__
|
||||
#define USE_EPOLL
|
||||
#define HAVE_BACKEND
|
||||
#include <sys/epoll.h>
|
||||
#else
|
||||
#endif
|
||||
|
||||
/*
|
||||
#if defined(__APPLE__) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__)
|
||||
#define USE_KQUEUE
|
||||
#define HAVE_BACKEND
|
||||
#include <sys/event.h>
|
||||
#endif
|
||||
*/
|
||||
|
||||
#ifndef HAVE_BACKEND
|
||||
#define USE_SELECT
|
||||
#include <sys/select.h>
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user