diff options
| author | Garrett D'Amore <garrett@damore.org> | 2018-05-05 17:21:55 -0700 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2018-05-06 15:23:24 -0700 |
| commit | e52d205799be922db0c1c63ae48a4921707183b4 (patch) | |
| tree | 897fb0bc3c0318af1e6c4ced7296efd7f88644dc /src/CMakeLists.txt | |
| parent | 916ba1ab23aa50b855fd795f095eaedb328e84d9 (diff) | |
| download | nng-e52d205799be922db0c1c63ae48a4921707183b4.tar.gz nng-e52d205799be922db0c1c63ae48a4921707183b4.tar.bz2 nng-e52d205799be922db0c1c63ae48a4921707183b4.zip | |
fixes #393 panic on illumos - epoll assertion error
This replaces the epoll support with proper illumos/SunOS port
events. The port event support is structured so that it actually
is superior to epoll and kqueue, because it avoids a single master
lock on the poller. In the future we will explore this for macOS
and Linux pollers.
Diffstat (limited to 'src/CMakeLists.txt')
| -rw-r--r-- | src/CMakeLists.txt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index a3e36ee8..96747bc3 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -106,7 +106,11 @@ if (NNG_PLATFORM_POSIX) ) endif() -if (NNG_HAVE_KQUEUE) +if (NNG_HAVE_PORT_CREATE) + set (NNG_SOURCES ${NNG_SOURCES} + platform/posix/posix_pollq_port.c + ) +elseif (NNG_HAVE_KQUEUE) set (NNG_SOURCES ${NNG_SOURCES} platform/posix/posix_pollq_kqueue.c ) |
