summaryrefslogtreecommitdiffstats
path: root/libc/stdio/vswprintf.c
diff options
context:
space:
mode:
author"Steven J. Hill" <sjhill@realitydiluted.com>2005-12-10 23:04:41 +0000
committer"Steven J. Hill" <sjhill@realitydiluted.com>2005-12-10 23:04:41 +0000
commit9184de4614953897215e989b8720ad7fe6cfde86 (patch)
tree3fbdd8c59ed45fee7162fc51241cb59ee51afcf2 /libc/stdio/vswprintf.c
parentf335b8c0ffb5fd7ae44d154900d78988b6abf769 (diff)
downloaduClibc-alpine-9184de4614953897215e989b8720ad7fe6cfde86.tar.bz2
uClibc-alpine-9184de4614953897215e989b8720ad7fe6cfde86.tar.xz
Finish merge from trunk, again, no really.
Diffstat (limited to 'libc/stdio/vswprintf.c')
-rw-r--r--libc/stdio/vswprintf.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libc/stdio/vswprintf.c b/libc/stdio/vswprintf.c
index d23ba123f..c9e73cf87 100644
--- a/libc/stdio/vswprintf.c
+++ b/libc/stdio/vswprintf.c
@@ -38,8 +38,12 @@ int attribute_hidden __vswprintf(wchar_t *__restrict buf, size_t size,
#ifdef __UCLIBC_HAS_THREADS__
f.__user_locking = 1; /* Set user locking. */
+#ifdef __USE_STDIO_FUTEXES__
+ _IO_lock_init (f._lock);
+#else
__stdio_init_mutex(&f.__lock);
#endif
+#endif
f.__nextopen = NULL;
if (size > ((SIZE_MAX - (size_t) buf)/sizeof(wchar_t))) {