diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2021-03-13 19:47:44 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2021-03-26 13:37:18 -0300 |
commit | 4c8cb283ec1993c57c7c1ff3577942b3f13145d0 (patch) | |
tree | 19b2f5cb839b116511568757f4b95d490a70aeab /sysdeps/unix/sysv/linux/pwrite.c | |
parent | dd795c6c243987e9974d2b9457f035dcb9b6e51f (diff) | |
download | glibc-4c8cb283ec1993c57c7c1ff3577942b3f13145d0.tar glibc-4c8cb283ec1993c57c7c1ff3577942b3f13145d0.tar.gz glibc-4c8cb283ec1993c57c7c1ff3577942b3f13145d0.tar.bz2 glibc-4c8cb283ec1993c57c7c1ff3577942b3f13145d0.zip |
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.
Diffstat (limited to 'sysdeps/unix/sysv/linux/pwrite.c')
-rw-r--r-- | sysdeps/unix/sysv/linux/pwrite.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/pwrite.c b/sysdeps/unix/sysv/linux/pwrite.c index 5ab046273f..c39ee8a163 100644 --- a/sysdeps/unix/sysv/linux/pwrite.c +++ b/sysdeps/unix/sysv/linux/pwrite.c @@ -18,6 +18,7 @@ #include <unistd.h> #include <sysdep-cancel.h> +#include <shlib-compat.h> #ifndef __OFF_T_MATCHES_OFF64_T @@ -30,4 +31,9 @@ __libc_pwrite (int fd, const void *buf, size_t count, off_t offset) strong_alias (__libc_pwrite, __pwrite) libc_hidden_weak (__pwrite) weak_alias (__libc_pwrite, pwrite) + +# if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_1, GLIBC_2_2) +compat_symbol (libc, __libc_pwrite, pwrite, GLIBC_2_2); +# endif + #endif |