public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-10022] [testsuite] [analyzer] include sys/select.h if available
@ 2024-04-18 11:15 Alexandre Oliva
0 siblings, 0 replies; only message in thread
From: Alexandre Oliva @ 2024-04-18 11:15 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:e965162bb9de6d2cd68cdc0e26dda56abd25fcdf
commit r14-10022-ge965162bb9de6d2cd68cdc0e26dda56abd25fcdf
Author: Alexandre Oliva <oliva@adacore.com>
Date: Thu Apr 18 08:01:21 2024 -0300
[testsuite] [analyzer] include sys/select.h if available
Test that calls select fails on vxworks because select is only
declared in sys/select.h. Include that header if it's present.
for gcc/testsuite/ChangeLog
* gcc.dg/analyzer/fd-glibc-byte-stream-connection-server.c:
Include sys/select.h if present.
Diff:
---
gcc/testsuite/gcc.dg/analyzer/fd-glibc-byte-stream-connection-server.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/gcc/testsuite/gcc.dg/analyzer/fd-glibc-byte-stream-connection-server.c b/gcc/testsuite/gcc.dg/analyzer/fd-glibc-byte-stream-connection-server.c
index fcbcc740170..f922a52238f 100644
--- a/gcc/testsuite/gcc.dg/analyzer/fd-glibc-byte-stream-connection-server.c
+++ b/gcc/testsuite/gcc.dg/analyzer/fd-glibc-byte-stream-connection-server.c
@@ -8,6 +8,9 @@
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
+#if __has_include(<sys/select.h>)
+#include <sys/select.h>
+#endif
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-04-18 11:15 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-18 11:15 [gcc r14-10022] [testsuite] [analyzer] include sys/select.h if available Alexandre Oliva
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).