summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/lstat.c
diff options
context:
space:
mode:
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