projects
/
platform
/
upstream
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cccef05
)
Fix compilation of server.cc on hpux.
author
John David Anglin
<danglin@gcc.gnu.org>
Mon, 9 Jan 2023 15:41:51 +0000
(15:41 +0000)
committer
John David Anglin
<danglin@gcc.gnu.org>
Mon, 9 Jan 2023 15:44:42 +0000
(15:44 +0000)
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
patch
|
blob
|
history
diff --git
a/c++tools/server.cc
b/c++tools/server.cc
index eded5c50628aabf8589f587542fafe68280ecc44..79905eca9accc45928cca4859ff7e5183fb0e7cb 100644
(file)
--- a/
c++tools/server.cc
+++ b/
c++tools/server.cc
@@
-753,8
+753,10
@@
server (bool ipv6, int sock_fd, module_resolver *resolver)
}
}
+#if defined (HAVE_PSELECT) || defined (HAVE_SELECT)
if (active < 0 && sock_fd >= 0 && FD_ISSET (sock_fd, &readers))
active = -1;
+#endif
}
if (active >= 0)