bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bash fails to compile on systems with select() but not pselect()


From: Koichi Murase
Subject: Re: bash fails to compile on systems with select() but not pselect()
Date: Sun, 23 May 2021 06:56:20 +0900

2021年5月23日(日) 5:08 Larkin Nickle <me@larbob.org>:
> [...]
>
> Notice that `set` is only defined if HAVE_PSELECT is defined.

Does it compile in Tru64 by declaring "set/oset" also for HAVE_SELECT?

diff --git a/lib/sh/input_avail.c b/lib/sh/input_avail.c
index 695165fd..2ac44616 100644
--- a/lib/sh/input_avail.c
+++ b/lib/sh/input_avail.c
@@ -110,7 +110,7 @@ nchars_avail (fd, nchars)
 #if defined(HAVE_SELECT)
   fd_set readfds, exceptfds;
 #endif
-#if defined (HAVE_PSELECT)
+#if defined (HAVE_PSELECT) || defined (HAVE_SELECT)
   sigset_t set, oset;
 #endif

-- 
Koichi



reply via email to

[Prev in Thread] Current Thread [Next in Thread]