From 50511ca46641eb76aef1ca3fd96ad1e97f95c199 Mon Sep 17 00:00:00 2001 From: Adhemerval Zanella Date: Thu, 19 Apr 2018 15:19:19 -0300 Subject: [PATCH] Fix mips64n32 getdents alias Fix commit 298d0e3 for mips64n32, checked on a mips64n32-linux-gnu build. * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64): Only alias to __getdents for _DIRENT_MATCHES_DIRENT64. --- ChangeLog | 3 +++ sysdeps/unix/sysv/linux/mips/mips64/getdents64.c | 2 ++ 2 files changed, 5 insertions(+) diff --git a/ChangeLog b/ChangeLog index 13b9640935..274941b6d7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2018-04-19 Adhemerval Zanella + * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64): + Only alias to __getdents for _DIRENT_MATCHES_DIRENT64. + * sysdeps/unix/sysv/linux/alpha/getdents.c: Add comments with alpha requirements. (_DIRENT_MATCHES_DIRENT64): Undef diff --git a/sysdeps/unix/sysv/linux/mips/mips64/getdents64.c b/sysdeps/unix/sysv/linux/mips/mips64/getdents64.c index 63afb2667e..136baad6dc 100644 --- a/sysdeps/unix/sysv/linux/mips/mips64/getdents64.c +++ b/sysdeps/unix/sysv/linux/mips/mips64/getdents64.c @@ -107,4 +107,6 @@ __getdents64 (int fd, char *buf, size_t nbytes) scratch_buffer_free (&tmpbuf); return (char *) dp - buf; } +#if _DIRENT_MATCHES_DIRENT64 strong_alias (__getdents64, __getdents) +#endif