summaryrefslogtreecommitdiff
path: root/libc/stdio/printf.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/stdio/printf.c')
-rw-r--r--libc/stdio/printf.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libc/stdio/printf.c b/libc/stdio/printf.c
index 47c11c6bf..365cd41a2 100644
--- a/libc/stdio/printf.c
+++ b/libc/stdio/printf.c
@@ -61,6 +61,7 @@
#include <printf.h>
#ifdef __STDIO_THREADSAFE
+#include <stdio_ext.h>
#include <pthread.h>
#endif /* __STDIO_THREADSAFE */
@@ -1313,6 +1314,7 @@ int vsnprintf(char *__restrict buf, size_t size,
#endif /* __STDIO_MBSTATE */
#ifdef __STDIO_THREADSAFE
+ f.user_locking = 0;
__stdio_init_mutex(&f.lock);
#endif
@@ -1392,6 +1394,7 @@ int vsnprintf(char *__restrict buf, size_t size,
#endif /* __STDIO_MBSTATE */
#ifdef __STDIO_THREADSAFE
+ f.user_locking = 0;
__stdio_init_mutex(&f.lock);
#endif
@@ -1439,6 +1442,7 @@ int vdprintf(int filedes, const char * __restrict format, va_list arg)
#endif /* __STDIO_MBSTATE */
#ifdef __STDIO_THREADSAFE
+ f.user_locking = 0;
__stdio_init_mutex(&f.lock);
#endif