From 804200923df4f40dbde09ea708869d252caba288 Mon Sep 17 00:00:00 2001 From: Adhemerval Zanella Date: Tue, 25 Aug 2020 17:22:09 -0300 Subject: Use LFS readdir in generic POSIX getcwd [BZ# 22899] Checked on x86_64-linux-gnu and i686-linux-gnu. --- sysdeps/unix/sysv/linux/readdir64.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sysdeps/unix') diff --git a/sysdeps/unix/sysv/linux/readdir64.c b/sysdeps/unix/sysv/linux/readdir64.c index 7d4b000..170a889 100644 --- a/sysdeps/unix/sysv/linux/readdir64.c +++ b/sysdeps/unix/sysv/linux/readdir64.c @@ -42,7 +42,11 @@ weak_alias (__readdir64, readdir) /* The compat code expects the 'struct direct' with d_ino being a __ino_t instead of __ino64_t. */ # include +# if IS_IN(rtld) +weak_alias (__readdir64, readdir64) +# else versioned_symbol (libc, __readdir64, readdir64, GLIBC_2_2); +# endif # if SHLIB_COMPAT(libc, GLIBC_2_1, GLIBC_2_2) # include # define __READDIR attribute_compat_text_section __old_readdir64 -- cgit v1.1