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: Larkin Nickle
Subject: Re: bash fails to compile on systems with select() but not pselect()
Date: Sat, 22 May 2021 20:39:06 -0400
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.10.2

On 2021-05-22 17:56, Koichi Murase wrote:
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


Yes, including `sigset_t set, oset;` under `#if defined(HAVE_SELECT)` does result in a working bash binary being built.

Larkin



reply via email to

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