diff options
author | "Steven J. Hill" <sjhill@realitydiluted.com> | 2005-07-22 05:47:17 +0000 |
---|---|---|
committer | "Steven J. Hill" <sjhill@realitydiluted.com> | 2005-07-22 05:47:17 +0000 |
commit | 9a97faafbcd7bc23d5adf32f4ed135bdf623629a (patch) | |
tree | d20e2fba0f9fce0ae5f30490d01e61da3725dcc6 /libc/stdio/vdprintf.c | |
parent | eb6ed4fe445d1d604a6deab019d547f78540127e (diff) | |
download | uClibc-alpine-9a97faafbcd7bc23d5adf32f4ed135bdf623629a.tar.bz2 uClibc-alpine-9a97faafbcd7bc23d5adf32f4ed135bdf623629a.tar.xz |
Add futex support into uClibc. Selection of futex support independent of
NPTL is not currently supported.
Diffstat (limited to 'libc/stdio/vdprintf.c')
-rw-r--r-- | libc/stdio/vdprintf.c | 4 |
1 files changed, 4 insertions, 0 deletions
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,8 +43,12 @@ 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; rv = vfprintf(&f, format, arg); |