]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
htl: Fix includes for lockfile
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Sat, 27 Jun 2020 12:20:24 +0000 (12:20 +0000)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Sun, 28 Jun 2020 00:13:57 +0000 (00:13 +0000)
These only need exactly to use __libc_ptf_call.

* sysdeps/htl/flockfile.c: Include <libc-lockP.h> instead of
<libc-lock.h>
* sysdeps/htl/ftrylockfile.c: Include <libc-lockP.h> instead of
<errno.h>, <pthread.h>, <stdio-lock.h>
* sysdeps/htl/funlockfile.c: Include <libc-lockP.h> instead of
<pthread.h> and <stdio-lock.h>

sysdeps/htl/flockfile.c
sysdeps/htl/ftrylockfile.c
sysdeps/htl/funlockfile.c

index 7d475e6e2966f39a2a1d4ccc09076133fc8de72d..956b8b4128fe855848bbc6610f668c1459748927 100644 (file)
@@ -17,7 +17,7 @@
    <https://www.gnu.org/licenses/>.  */
 
 #include <stdio.h>
-#include <libc-lock.h>
+#include <libc-lockP.h>
 
 
 void
index a46754564798af4bfc7a0d21285eececf1cd68ac..a99cdedb0d93a7dd4827eb5c59bef10a867f6589 100644 (file)
    License along with the GNU C Library; if not, see
    <https://www.gnu.org/licenses/>.  */
 
-#include <errno.h>
-#include <pthread.h>
 #include <stdio.h>
-#include <stdio-lock.h>
+#include <libc-lockP.h>
 
 
 int
index 70f6f2e773e537dbd807151cae0fc8282b0bd73b..0b59efaa35c344ade63cd22b5fee15cdbce5c734 100644 (file)
@@ -16,9 +16,8 @@
    License along with the GNU C Library; if not, see
    <https://www.gnu.org/licenses/>.  */
 
-#include <pthread.h>
 #include <stdio.h>
-#include <stdio-lock.h>
+#include <libc-lockP.h>
 
 
 void