diff options
| author | Liam Staskawicz <liam@stask.net> | 2018-01-15 14:38:13 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2018-03-02 08:58:27 -0800 |
| commit | 7849fd286533560f10eff202f24007ea6b3dd787 (patch) | |
| tree | d9693bcaf99b3b1bdc12c784c40da8a91e46eba9 /src/platform/posix/posix_config.h | |
| parent | 91089a2a60d2a74334fc67757fd23ee1f3ae56d5 (diff) | |
| download | nng-7849fd286533560f10eff202f24007ea6b3dd787.tar.gz nng-7849fd286533560f10eff202f24007ea6b3dd787.tar.bz2 nng-7849fd286533560f10eff202f24007ea6b3dd787.zip | |
kqueue: add kqueue-based pollq implementation
Diffstat (limited to 'src/platform/posix/posix_config.h')
| -rw-r--r-- | src/platform/posix/posix_config.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/platform/posix/posix_config.h b/src/platform/posix/posix_config.h index e22c033a..9afa70c8 100644 --- a/src/platform/posix/posix_config.h +++ b/src/platform/posix/posix_config.h @@ -60,7 +60,12 @@ #define NNG_USE_CLOCKID CLOCK_REALTIME #endif // CLOCK_REALTIME +#if defined(NNG_HAVE_KQUEUE) +// pass +#else +// fallback to poll(2) #define NNG_USE_POSIX_POLLQ_POLL 1 +#endif #define NNG_USE_POSIX_RESOLV_GAI 1 #endif // NNG_PLATFORM_POSIX |
