summaryrefslogtreecommitdiffstats
path: root/libc/sysdeps/linux/common/lstat.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2009-02-27 22:51:30 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2009-02-27 22:51:30 +0000
commit44fb69f50b0b6faab1c2b4e4c63cf914868f8436 (patch)
tree3dcffc85db19c0db58df4ddab281bbe8f403b2e6 /libc/sysdeps/linux/common/lstat.c
parent1c03d97b4dea9fef596506d7fbeb2fa11f75004c (diff)
downloaduClibc-alpine-44fb69f50b0b6faab1c2b4e4c63cf914868f8436.tar.bz2
uClibc-alpine-44fb69f50b0b6faab1c2b4e4c63cf914868f8436.tar.xz
fix breakage in x86_64 defconfig
Diffstat (limited to 'libc/sysdeps/linux/common/lstat.c')
-rw-r--r--libc/sysdeps/linux/common/lstat.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/libc/sysdeps/linux/common/lstat.c b/libc/sysdeps/linux/common/lstat.c
index 1adbdcf87..aa774473c 100644
--- a/libc/sysdeps/linux/common/lstat.c
+++ b/libc/sysdeps/linux/common/lstat.c
@@ -7,19 +7,11 @@
* Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
*/
-/* need to hide the 64bit prototype or the strong_alias()
- * will fail when __NR_lstat64 doesnt exist */
-#define lstat64 __hidelstat64
-
#include <sys/syscall.h>
#include <unistd.h>
#include <sys/stat.h>
#include "xstatconv.h"
-#undef lstat64
-
-/* libc_hidden_proto(lstat) */
-
#define __NR___syscall_lstat __NR_lstat
static __inline__ _syscall2(int, __syscall_lstat,
const char *, file_name, struct kernel_stat *, buf)
@@ -38,8 +30,6 @@ int lstat(const char *file_name, struct stat *buf)
libc_hidden_def(lstat)
#if ! defined __NR_lstat64 && defined __UCLIBC_HAS_LFS__
-extern __typeof(lstat) lstat64;
-/* libc_hidden_proto(lstat64) */
-strong_alias(lstat,lstat64)
+strong_alias_untyped(lstat,lstat64)
libc_hidden_def(lstat64)
#endif