Fix __sglue inititialization

Do not initialize __sglue with the FILE objects of _GLOBAL_REENT to avoid a
double use in the !_REENT_SMALL and !_REENT_GLOBAL_STDIO_STREAMS configurations
which didn't use a thread-specific reentrancy structure.
This commit is contained in:
Sebastian Huber 2022-06-07 07:55:02 +02:00
parent 07cf763095
commit 14fc9be234
1 changed files with 0 additions and 4 deletions

View File

@ -41,11 +41,7 @@ const struct __sFILE_fake __sf_fake_stderr =
__FILE __sf[3]; __FILE __sf[3];
struct _glue __sglue = {NULL, 3, &__sf[0]}; struct _glue __sglue = {NULL, 3, &__sf[0]};
#else #else
#ifdef _REENT_SMALL
struct _glue __sglue = {NULL, 0, NULL}; struct _glue __sglue = {NULL, 0, NULL};
#else
struct _glue __sglue = {NULL, 3, &_GLOBAL_REENT->__sf[0]};
#endif
#endif #endif
#ifdef _STDIO_BSD_SEMANTICS #ifdef _STDIO_BSD_SEMANTICS