From ee05cc213a982db461f137db77f388a7e5b043e4 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sun, 8 Jan 2006 11:05:06 +0000 Subject: add missing hidden alias for 64bit hosts --- libc/sysdeps/linux/common/lstat.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'libc/sysdeps/linux/common/lstat.c') 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 #define _SYS_STAT_H @@ -14,6 +18,8 @@ #include #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 -- cgit v1.2.3