diff options
Diffstat (limited to 'linuxthreads/sysdeps/pthread/bits/stdio-lock.h')
-rw-r--r-- | linuxthreads/sysdeps/pthread/bits/stdio-lock.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linuxthreads/sysdeps/pthread/bits/stdio-lock.h b/linuxthreads/sysdeps/pthread/bits/stdio-lock.h index ba3e781928..42c219624f 100644 --- a/linuxthreads/sysdeps/pthread/bits/stdio-lock.h +++ b/linuxthreads/sysdeps/pthread/bits/stdio-lock.h @@ -27,7 +27,7 @@ typedef pthread_mutex_t _IO_lock_t; #define _IO_cleanup_region_start(_fct, _fp) \ { struct _pthread_cleanup_buffer _buffer; \ - int _avail = (((_fp)->_mode & _IO_USER_LOCK) == 0 \ + int _avail = (((_fp)->_flags & _IO_USER_LOCK) == 0 \ && _pthread_cleanup_push_defer != NULL); \ if (_avail) { \ _pthread_cleanup_push_defer (&_buffer, (_fct), (_fp)); \ |