From 4c8cb283ec1993c57c7c1ff3577942b3f13145d0 Mon Sep 17 00:00:00 2001 From: Adhemerval Zanella Date: Sat, 13 Mar 2021 19:47:44 -0300 Subject: nptl: Remove pwrite from libpthread The libc version is identical and built with same flags, it is also uses as the default version. Checked on x86_64-linux-gnu. --- sysdeps/unix/sysv/linux/pwrite64.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'sysdeps/unix/sysv/linux/pwrite64.c') diff --git a/sysdeps/unix/sysv/linux/pwrite64.c b/sysdeps/unix/sysv/linux/pwrite64.c index bfbee9350f..f39e1238a4 100644 --- a/sysdeps/unix/sysv/linux/pwrite64.c +++ b/sysdeps/unix/sysv/linux/pwrite64.c @@ -18,6 +18,7 @@ #include #include +#include ssize_t __libc_pwrite64 (int fd, const void *buf, size_t count, off64_t offset) @@ -33,4 +34,13 @@ weak_alias (__libc_pwrite64, pwrite64) strong_alias (__libc_pwrite64, __libc_pwrite) weak_alias (__libc_pwrite64, __pwrite) weak_alias (__libc_pwrite64, pwrite) + +# if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_1, GLIBC_2_2) +compat_symbol (libc, __libc_pwrite64, pwrite, GLIBC_2_2); +# endif +#endif + +#if SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2) +compat_symbol (libc, __libc_pwrite64, pwrite64, GLIBC_2_2); +compat_symbol (libc, __libc_pwrite64, __pwrite64, GLIBC_2_2); #endif -- cgit 1.4.1