summaryrefslogtreecommitdiffstats
path: root/unix/tclEpollNotfy.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2018-05-22 20:10:21 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2018-05-22 20:10:21 (GMT)
commitb729965a3c4258862bc075facb0291c0c765cd57 (patch)
tree7c7ab2033bacc9629720f18451045082e515a7f2 /unix/tclEpollNotfy.c
parent708eadd19e5581da93b7d8e801ffe977e6e1376f (diff)
downloadtcl-b729965a3c4258862bc075facb0291c0c765cd57.zip
tcl-b729965a3c4258862bc075facb0291c0c765cd57.tar.gz
tcl-b729965a3c4258862bc075facb0291c0c765cd57.tar.bz2
Fix build with TCL_THREADS=0 on Linux/other without epoll or kqueu support. In that case, fallback to select notifier
Diffstat (limited to 'unix/tclEpollNotfy.c')
-rw-r--r--unix/tclEpollNotfy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/unix/tclEpollNotfy.c b/unix/tclEpollNotfy.c
index 076e02b..3059643 100644
--- a/unix/tclEpollNotfy.c
+++ b/unix/tclEpollNotfy.c
@@ -12,7 +12,7 @@
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*/
-#ifdef NOTIFIER_EPOLL
+#if defined(NOTIFIER_EPOLL) && (!defined(TCL_THREADS) || TCL_THREADS)
#define _GNU_SOURCE /* For pipe2(2) */
#include "tclInt.h"