summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-11-02 12:13:00 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-11-02 12:13:00 +0000
commite0d1b83cf82a40ecb6ab4cef10653f9160f270fe (patch)
tree70e77651738ba883e2cce92c17a8786cd344e986
parent9f92e30632936d18bca2ab703f171bb77f66abde (diff)
- Fix __user_locking with stdio buffers (Carmelo AMOROSO)
Closes #5254
-rw-r--r--libc/stdio/vsnprintf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/stdio/vsnprintf.c b/libc/stdio/vsnprintf.c
index e5a14d51a..f7d2349c1 100644
--- a/libc/stdio/vsnprintf.c
+++ b/libc/stdio/vsnprintf.c
@@ -46,7 +46,7 @@ int vsnprintf(char *__restrict buf, size_t size,
__INIT_MBSTATE(&(f.__state));
#endif /* __STDIO_MBSTATE */
-#if defined(__USE_OLD_VFPRINTF__) && defined(__UCLIBC_HAS_THREADS__)
+#if (defined(__STDIO_BUFFERS) || defined(__USE_OLD_VFPRINTF__)) && defined(__UCLIBC_HAS_THREADS__)
f.__user_locking = 1; /* Set user locking. */
__stdio_init_mutex(&f.__lock);
#endif