From 53d5bd786130a937a0e691e0c470675fe9c55485 Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Fri, 30 Dec 2016 17:51:35 -0500 Subject: [PATCH] Don't call xg_select for a NextStep build. NextStep builds use glib but don't use xg_select. * src/process.c (wait_reading_process_output): Don't call xg_select for a NextStep build. --- src/process.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/process.c b/src/process.c index c0c52c232b9..0d88b2ce285 100644 --- a/src/process.c +++ b/src/process.c @@ -5341,8 +5341,8 @@ wait_reading_process_output (intmax_t time_limit, int nsecs, int read_kbd, } #endif -/* HAVE_GLIB builds call thread_select in xgselect.c. */ -#ifdef HAVE_GLIB +/* Non-macOS HAVE_GLIB builds call thread_select in xgselect.c. */ +#if defined HAVE_GLIB && !defined HAVE_NS nfds = xg_select (max_desc + 1, &Available, (check_write ? &Writeok : 0), NULL, &timeout, NULL); -- 2.39.5