summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-01-08 11:05:06 +0000
committerMike Frysinger <vapier@gentoo.org>2006-01-08 11:05:06 +0000
commitee05cc213a982db461f137db77f388a7e5b043e4 (patch)
tree13ad8eff7a0ce6e4e620b7b1b235867ce784ca92 /libc/sysdeps/linux/common
parenta4e94ada6d6beda725bcaaf4a10382402cd3ef55 (diff)
add missing hidden alias for 64bit hosts
Diffstat (limited to 'libc/sysdeps/linux/common')
-rw-r--r--libc/sysdeps/linux/common/lstat.c7
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