HCoop
/
bpt
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3eb1268
)
simplify cpp usage in wait_reading_process_output
author
BT Templeton
<bt@hcoop.net>
Tue, 16 Jul 2013 06:06:16 +0000
(
02:06
-0400)
committer
Robin Templeton
<robin@terpri.org>
Sat, 18 Apr 2015 22:49:11 +0000
(18:49 -0400)
src/process.c
patch
|
blob
|
blame
|
history
diff --git
a/src/process.c
b/src/process.c
index
394f719
..
0b6321a
100644
(file)
--- a/
src/process.c
+++ b/
src/process.c
@@
-4586,16
+4586,18
@@
wait_reading_process_output (intmax_t time_limit, int nsecs, int read_kbd,
#endif
#if defined (HAVE_NS)
-
nfds =
ns_select
+
# define SELECT
ns_select
#elif defined (HAVE_GLIB)
-
nfds =
xg_select
+
# define SELECT
xg_select
#else
-
nfds =
pselect
+
# define SELECT
pselect
#endif
+ nfds = SELECT
(max (max_process_desc, max_input_desc) + 1,
&Available,
(check_write ? &Writeok : 0),
NULL, &timeout, NULL);
+#undef SELECT
#ifdef HAVE_GNUTLS
/* GnuTLS buffers data internally. In lowat mode it leaves