diff options
author | "Steven J. Hill" <sjhill@realitydiluted.com> | 2005-08-09 05:50:49 +0000 |
---|---|---|
committer | "Steven J. Hill" <sjhill@realitydiluted.com> | 2005-08-09 05:50:49 +0000 |
commit | 75f9a2b1874f3c50727c6b91fd5b5735a2a5deb3 (patch) | |
tree | 04a04dac7fd6a10c123dea261b22e7e331d33dd2 /libc/stdio/_fopen.c | |
parent | 7eca0902fd7bbdb04ea83f967b0a198335c8d5db (diff) | |
download | uClibc-alpine-75f9a2b1874f3c50727c6b91fd5b5735a2a5deb3.tar.bz2 uClibc-alpine-75f9a2b1874f3c50727c6b91fd5b5735a2a5deb3.tar.xz |
In reality, the futex support that was originally added was only for STDIO operations internal to libc. The futexes should not be visible to anything other than libc. These changes clean up futex and STDIO.
Diffstat (limited to 'libc/stdio/_fopen.c')
-rw-r--r-- | libc/stdio/_fopen.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/stdio/_fopen.c b/libc/stdio/_fopen.c index b1722fef2..bba8cfdfd 100644 --- a/libc/stdio/_fopen.c +++ b/libc/stdio/_fopen.c @@ -98,7 +98,7 @@ FILE *_stdio_fopen(intptr_t fname_or_mode, #ifdef __UCLIBC_HAS_THREADS__ /* We only initialize the mutex in the non-freopen case. */ /* stream->__user_locking = _stdio_user_locking; */ -#ifdef __UCLIBC_HAS_FUTEXES__ +#ifdef __USE_STDIO_FUTEXES__ _IO_lock_init (stream->_lock); #else __stdio_init_mutex(&stream->__lock); @@ -194,7 +194,7 @@ FILE *_stdio_fopen(intptr_t fname_or_mode, #ifdef __UCLIBC_HAS_THREADS__ /* Even in the freopen case, we reset the user locking flag. */ stream->__user_locking = _stdio_user_locking; -#ifdef __UCLIBC_HAS_FUTEXES__ +#ifdef __USE_STDIO_FUTEXES__ /* _IO_lock_init (stream->_lock); */ #else /* __stdio_init_mutex(&stream->__lock); */ |