From 1abc2fba5573205fd0669f82ffd37423a094207a Mon Sep 17 00:00:00 2001 From: Adhemerval Zanella Date: Thu, 6 May 2021 16:10:28 -0300 Subject: linux: Move funlockfile/_IO_funlockfile into libc The nptl version is used as default, since now with symbol always present the single-thread optimization is tricky. Hurd is not change, it is used it own lock scheme (which call _cthreads_funlockfile). Checked on x86_64-linux-gnu. --- stdio-common/funlockfile.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'stdio-common') diff --git a/stdio-common/funlockfile.c b/stdio-common/funlockfile.c index 50f2f99..961fa3d 100644 --- a/stdio-common/funlockfile.c +++ b/stdio-common/funlockfile.c @@ -17,13 +17,13 @@ . */ #include - -#undef _IO_funlockfile +#include +#include void __funlockfile (FILE *stream) { - /* Do nothing. Using this version does not do any locking. */ + _IO_lock_unlock (*stream->_lock); } weak_alias (__funlockfile, _IO_funlockfile) weak_alias (__funlockfile, funlockfile); -- cgit v1.1