public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc/vineet/arc-port-latest] htl: Fix includes for lockfile
@ 2020-07-07 22:03 Vineet Gupta
0 siblings, 0 replies; only message in thread
From: Vineet Gupta @ 2020-07-07 22:03 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=cf2c8cc2c674dd6c1145c6984121ea4754b79162
commit cf2c8cc2c674dd6c1145c6984121ea4754b79162
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date: Sat Jun 27 12:20:24 2020 +0000
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>
Diff:
---
sysdeps/htl/flockfile.c | 2 +-
sysdeps/htl/ftrylockfile.c | 4 +---
sysdeps/htl/funlockfile.c | 3 +--
3 files changed, 3 insertions(+), 6 deletions(-)
diff --git a/sysdeps/htl/flockfile.c b/sysdeps/htl/flockfile.c
index 7d475e6e29..956b8b4128 100644
--- a/sysdeps/htl/flockfile.c
+++ b/sysdeps/htl/flockfile.c
@@ -17,7 +17,7 @@
<https://www.gnu.org/licenses/>. */
#include <stdio.h>
-#include <libc-lock.h>
+#include <libc-lockP.h>
void
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
diff --git a/sysdeps/htl/funlockfile.c b/sysdeps/htl/funlockfile.c
index 70f6f2e773..0b59efaa35 100644
--- a/sysdeps/htl/funlockfile.c
+++ b/sysdeps/htl/funlockfile.c
@@ -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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-07-07 22:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-07 22:03 [glibc/vineet/arc-port-latest] htl: Fix includes for lockfile Vineet Gupta
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).