Loading...
--- Libc/Libc-1044.1.2/stdio/FreeBSD/wsetup.c
+++ Libc/Libc-825.26/stdio/FreeBSD/wsetup.c
@@ -51,7 +51,8 @@
FILE *fp;
{
/* make sure stdio is set up */
- pthread_once(&__sdidinit, __sinit);
+ if (!__sdidinit)
+ __sinit();
/*
* If we are not writing, we had better be reading and writing.