summaryrefslogtreecommitdiffstats
path: root/libc/stdio/vsnprintf.c
diff options
context:
space:
mode:
authorCarmelo Amoroso <carmelo.amoroso@st.com>2008-11-17 18:03:46 +0000
committerCarmelo Amoroso <carmelo.amoroso@st.com>2008-11-17 18:03:46 +0000
commit892cc11771a53d7ee30c5334ca2bda56fd6e6c8b (patch)
tree3f3bf7d31525b64c671faf04cd468c3c84635f00 /libc/stdio/vsnprintf.c
parent5d96ee84a344a55682848b1338b9bcd0618e341b (diff)
downloaduClibc-alpine-892cc11771a53d7ee30c5334ca2bda56fd6e6c8b.tar.bz2
uClibc-alpine-892cc11771a53d7ee30c5334ca2bda56fd6e6c8b.tar.xz
Synch with trunk @ 24075.
Step 9: libc/stdio - libc/inet - libc/pwd_grp
Diffstat (limited to 'libc/stdio/vsnprintf.c')
-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 8bc697a48..5cdb6ebf8 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