diff --git a/lib/libc/stdio/findfp.c b/lib/libc/stdio/findfp.c index 5538a57260b..40a2a048eb6 100644 --- a/lib/libc/stdio/findfp.c +++ b/lib/libc/stdio/findfp.c @@ -69,7 +69,10 @@ static struct glue uglue = { NULL, FOPEN_MAX - 3, usual }; static struct __sFILEX __sFX[3]; -static FILE __sF[3] = { +#if LIBC_MAJOR >= 6 +static +#endif +FILE __sF[3] = { std(__SRD, STDIN_FILENO), std(__SWR, STDOUT_FILENO), std(__SWR|__SNBF, STDERR_FILENO)