From 9a97faafbcd7bc23d5adf32f4ed135bdf623629a Mon Sep 17 00:00:00 2001 From: "\"Steven J. Hill\"" Date: Fri, 22 Jul 2005 05:47:17 +0000 Subject: Add futex support into uClibc. Selection of futex support independent of NPTL is not currently supported. --- libc/stdio/vdprintf.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libc/stdio/vdprintf.c') diff --git a/libc/stdio/vdprintf.c b/libc/stdio/vdprintf.c index de8362c20..6449d37ca 100644 --- a/libc/stdio/vdprintf.c +++ b/libc/stdio/vdprintf.c @@ -43,7 +43,11 @@ int vdprintf(int filedes, const char * __restrict format, va_list arg) #ifdef __UCLIBC_HAS_THREADS__ f.__user_locking = 1; /* Set user locking. */ +#ifdef __UCLIBC_HAS_FUTEXES__ + _IO_lock_init (f._lock); +#else __stdio_init_mutex(&f.__lock); +#endif #endif f.__nextopen = NULL; -- cgit v1.2.3