diff options
Diffstat (limited to 'libc/sysdeps/linux/common')
-rw-r--r-- | libc/sysdeps/linux/common/lstat.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/common/lstat.c b/libc/sysdeps/linux/common/lstat.c index 69d663d51..4d01adcec 100644 --- a/libc/sysdeps/linux/common/lstat.c +++ b/libc/sysdeps/linux/common/lstat.c @@ -7,6 +7,10 @@ * GNU Library General Public License (LGPL) version 2 or later. */ +/* need to hide the 64bit prototype or the weak_alias() + * will fail when __NR_lstat64 doesnt exist */ +#define __lstat64 __hide__lstat64 + #include "syscalls.h" #include <unistd.h> #define _SYS_STAT_H @@ -14,6 +18,8 @@ #include <bits/kernel_stat.h> #include "xstatconv.h" +#undef __lstat64 + #define __NR___syscall_lstat __NR_lstat #undef __lstat #undef lstat @@ -34,5 +40,6 @@ int attribute_hidden __lstat(const char *file_name, struct stat *buf) strong_alias(__lstat,lstat) #if ! defined __NR_lstat64 && defined __UCLIBC_HAS_LFS__ +hidden_strong_alias(__lstat,__lstat64) weak_alias(lstat,lstat64) #endif |