From 6d73752dd2856bd12a15ae3ba7a7d4b6b59ce2f3 Mon Sep 17 00:00:00 2001
From: Justin Berger <j.david.berger@gmail.com>
Date: Sat, 22 Jul 2017 12:33:52 -0600
Subject: [PATCH] Allow KWSYSPE_USE_SELECT macro to be overriden at compile
 time.

Some systems / tools don't play nicely with how select is used here.
---
 ProcessUNIX.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/ProcessUNIX.c b/ProcessUNIX.c
index 9ebcfce5..3b32ca7d 100644
--- a/ProcessUNIX.c
+++ b/ProcessUNIX.c
@@ -99,7 +99,8 @@ static inline void kwsysProcess_usleep(unsigned int msec)
  * pipes' file handles to be non-blocking and just poll them directly
  * without select().
  */
-#if !defined(__BEOS__) && !defined(__VMS) && !defined(__MINT__)
+#if !defined(__BEOS__) && !defined(__VMS) && !defined(__MINT__) &&            \
+  !defined(KWSYSPE_USE_SELECT)
 #define KWSYSPE_USE_SELECT 1
 #endif
 
-- 
GitLab