summaryrefslogtreecommitdiffstats
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.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libc/sysdeps/linux/common/stat.c b/libc/sysdeps/linux/common/stat.c
index cefbd5f8e..7e7fe6bec 100644
--- a/libc/sysdeps/linux/common/stat.c
+++ b/libc/sysdeps/linux/common/stat.c
@@ -14,6 +14,8 @@
#include "xstatconv.h"
#define __NR___syscall_stat __NR_stat
+#undef __stat
+#undef stat
static inline _syscall2(int, __syscall_stat,
const char *, file_name, struct kernel_stat *, buf);
@@ -31,5 +33,6 @@ int attribute_hidden __stat(const char *file_name, struct stat *buf)
strong_alias(__stat,stat)
#if ! defined __NR_stat64 && defined __UCLIBC_HAS_LFS__
-weak_alias(stat,stat64)
+hidden_strong_alias(__stat,__stat64)
+weak_alias(__stat,stat64)
#endif