Fix compilation of server.cc on hpux.
commit0925a9772960c946440833033423bff41c330154
authorJohn David Anglin <danglin@gcc.gnu.org>
Mon, 9 Jan 2023 15:41:51 +0000 (9 15:41 +0000)
committerJohn David Anglin <danglin@gcc.gnu.org>
Mon, 9 Jan 2023 15:44:42 +0000 (9 15:44 +0000)
tree9d9a5f698764e8c76e7b82602f3a07644a2e2dbc
parentcccef0517f3a73f638a96ee879e94ff2bece7298
Fix compilation of server.cc on hpux.

Select and FD_ISSET are declared in sys/time.h on most versions
of hpux.  As a result, HAVE_PSELECT and HAVE_SELECT can be 0.

2023-01-08  John David Anglin  <danglin@gcc.gnu.org>

c++tools/ChangeLog:

PR other/107616
* server.cc (server): Don't call FD_ISSET when HAVE_PSELECT
and HAVE_SELECT are zero.
c++tools/server.cc