Re: [PATCH] vxworks: libstdc++: include ioLib.h for dup()

2025-05-08 Thread Jonathan Wakely
On Fri, 9 May 2025, 03:29 Alexandre Oliva, wrote: > > 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. > > Tested with gcc-14 targetin

[PATCH] vxworks: libstdc++: include ioLib.h for dup()

2025-05-08 Thread Alexandre Oliva
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. Tested with gcc-14 targeting ppc-vx7r2 and ppc64-vx7r2. Also tested with trunk on ppc64