From 86ace01fed5ed39a48e6d21810fec93f976baa97 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 29 Nov 2018 19:35:55 +0000 Subject: selfwake: enable self-pipe with kqueue 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. --- selfwake.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/selfwake.h b/selfwake.h index 972176a..158aca8 100644 --- a/selfwake.h +++ b/selfwake.h @@ -2,7 +2,9 @@ * Copyright (C) 2012-2018 all contributors * License: GPL-3.0+ */ -#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 -- cgit v1.2.3-24-ge0c7