about summary refs log tree commit homepage
path: root/selfwake.h
diff options
context:
space:
mode:
Diffstat (limited to 'selfwake.h')
-rw-r--r--selfwake.h4
1 files changed, 3 insertions, 1 deletions
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 <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