diff options
Diffstat (limited to 'newlib/libc/stdio/findfp.c')
-rw-r--r-- | newlib/libc/stdio/findfp.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/newlib/libc/stdio/findfp.c b/newlib/libc/stdio/findfp.c index 10f01b271..f8b67f76d 100644 --- a/newlib/libc/stdio/findfp.c +++ b/newlib/libc/stdio/findfp.c @@ -232,6 +232,8 @@ __fp_unlock (ptr) void __fp_lock_all () { + __sfp_lock_acquire (); + (void) _fwalk (_REENT, __fp_lock); } @@ -239,5 +241,7 @@ void __fp_unlock_all () { (void) _fwalk (_REENT, __fp_unlock); + + __sfp_lock_release (); } #endif |