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.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/common/stat.c b/libc/sysdeps/linux/common/stat.c
index 7e7fe6bec..74d6e2f5f 100644
--- a/libc/sysdeps/linux/common/stat.c
+++ b/libc/sysdeps/linux/common/stat.c
@@ -7,12 +7,18 @@
* GNU Library General Public License (LGPL) version 2 or later.
*/
+/* need to hide the 64bit prototype or the weak_alias()
+ * will fail when __NR_stat64 doesnt exist */
+#define __stat64 __hide__stat64
+
#include "syscalls.h"
#include <unistd.h>
#define _SYS_STAT_H
#include <bits/stat.h>
#include "xstatconv.h"
+#undef __stat64
+
#define __NR___syscall_stat __NR_stat
#undef __stat
#undef stat