summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/stat.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/common/stat.c')
-rw-r--r--libc/sysdeps/linux/common/stat.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/libc/sysdeps/linux/common/stat.c b/libc/sysdeps/linux/common/stat.c
index d563bcd88..a6ab291f2 100644
--- a/libc/sysdeps/linux/common/stat.c
+++ b/libc/sysdeps/linux/common/stat.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_stat64 doesnt exist */
-#define stat64 __hidestat64
-
#include <sys/syscall.h>
#include <unistd.h>
#include <sys/stat.h>
#include "xstatconv.h"
-#undef stat64
-
-/* libc_hidden_proto(stat) */
-
#define __NR___syscall_stat __NR_stat
#undef stat
static __inline__ _syscall2(int, __syscall_stat,
@@ -39,8 +31,6 @@ int stat(const char *file_name, struct stat *buf)
libc_hidden_def(stat)
#if ! defined __NR_stat64 && defined __UCLIBC_HAS_LFS__
-extern __typeof(stat) stat64;
-/* libc_hidden_proto(stat64) */
-strong_alias(stat,stat64)
+strong_alias_untyped(stat,stat64)
libc_hidden_def(stat64)
#endif