diff options
author | Eric Wong <e@80x24.org> | 2018-11-29 19:35:55 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2018-11-29 19:36:53 +0000 |
commit | 86ace01fed5ed39a48e6d21810fec93f976baa97 (patch) | |
tree | 36329811f80f90464bad8fa8612403414e179fcd | |
parent | a4bff7526f9c9f642767e254463f22ba2c10f507 (diff) | |
download | cmogstored-86ace01fed5ed39a48e6d21810fec93f976baa97.tar.gz |
This was causing my libkqueue build to stall on Linux where epoll_pwait exists. We actually favor kqueue in the code for testing purposes, so we need to enable the self-wake pipe when using libkqueue if epoll_pwait is detected.
-rw-r--r-- | selfwake.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -2,7 +2,9 @@ * Copyright (C) 2012-2018 all contributors <cmogstored-public@bogomips.org> * License: GPL-3.0+ <https://www.gnu.org/licenses/gpl-3.0.txt> */ -#if (defined(HAVE_EPOLL_WAIT) && defined(HAVE_PPOLL)) \ +#if defined(HAVE_KQUEUE) +# define MOG_SELFPIPE 1 +#elif (defined(HAVE_EPOLL_WAIT) && defined(HAVE_PPOLL)) \ || defined(HAVE_EPOLL_PWAIT) # define MOG_SELFPIPE 0 #else |