about summary refs log tree commit diff
path: root/sysdeps/htl/ftrylockfile.c
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2020-06-27 12:20:24 +0000
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2020-06-28 00:13:57 +0000
commitcf2c8cc2c674dd6c1145c6984121ea4754b79162 (patch)
tree5bbc1ed809c112e4a07b5c41dd60f710a254ce16 /sysdeps/htl/ftrylockfile.c
parent726117e01b59b129d471304fec4bf78fa280ff9e (diff)
downloadglibc-cf2c8cc2c674dd6c1145c6984121ea4754b79162.tar.gz
glibc-cf2c8cc2c674dd6c1145c6984121ea4754b79162.tar.xz
glibc-cf2c8cc2c674dd6c1145c6984121ea4754b79162.zip
htl: Fix includes for lockfile
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>
Diffstat (limited to 'sysdeps/htl/ftrylockfile.c')
-rw-r--r--sysdeps/htl/ftrylockfile.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sysdeps/htl/ftrylockfile.c b/sysdeps/htl/ftrylockfile.c
index a467545647..a99cdedb0d 100644
--- a/sysdeps/htl/ftrylockfile.c
+++ b/sysdeps/htl/ftrylockfile.c
@@ -16,10 +16,8 @@
    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