From 923d57b525f5955d1f49854dbeb320cf6db74e64 Mon Sep 17 00:00:00 2001 From: Alexandre Oliva Date: Sat, 10 May 2025 01:26:38 -0300 Subject: [PATCH] vxworks: libstdc++: include ioLib.h for dup() vxworks's dup function is not declared in unistd.h, but c++23/print.cc expects to be able to call it if unistd.h is available. On vxworks, the function is only declared in ioLib.h, so arrange to include it. for libstdc++-v3/ChangeLog * src/c++23/print.cc [__VXWORKS__]: Include ioLib.h. --- libstdc++-v3/src/c++23/print.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libstdc++-v3/src/c++23/print.cc b/libstdc++-v3/src/c++23/print.cc index 8ba71405967..f3436995009 100644 --- a/libstdc++-v3/src/c++23/print.cc +++ b/libstdc++-v3/src/c++23/print.cc @@ -43,6 +43,10 @@ # include // isatty #endif +#ifdef __VXWORKS__ +#include +#endif + namespace std _GLIBCXX_VISIBILITY(default) { _GLIBCXX_BEGIN_NAMESPACE_VERSION -- 2.47.2