From e0d1b83cf82a40ecb6ab4cef10653f9160f270fe Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Sun, 2 Nov 2008 12:13:00 +0000 Subject: - Fix __user_locking with stdio buffers (Carmelo AMOROSO) Closes #5254 --- libc/stdio/vsnprintf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libc/stdio') 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 -- cgit v1.2.3