@@ -9,15 +9,15 @@
/* need to hide the 64bit prototype or the weak_alias()
* will fail when __NR_fstat64 doesnt exist */
+#define fstat64 __hidefstat64
#define __fstat64 __hide__fstat64
#include "syscalls.h"
#include <unistd.h>
-#define _SYS_STAT_H
+#include <sys/stat.h>
-#include <bits/stat.h>
-#include <bits/kernel_stat.h>
#include "xstatconv.h"
+#undef fstat64
#undef __fstat64
#define __NR___syscall_fstat __NR_fstat
@@ -13,7 +13,6 @@
#define __NR___syscall_fstat64 __NR_fstat64
#include <sys/stat.h>
static inline _syscall2(int, __syscall_fstat64,
* will fail when __NR_lstat64 doesnt exist */
+#define lstat64 __hidelstat64
#define __lstat64 __hide__lstat64
+#undef lstat64
#undef __lstat64
#define __NR___syscall_lstat __NR_lstat
@@ -12,7 +12,6 @@
#if defined __UCLIBC_HAS_LFS__ && defined __NR_lstat64
#define __NR___syscall_lstat64 __NR_lstat64
@@ -9,14 +9,15 @@
* will fail when __NR_stat64 doesnt exist */
+#define stat64 __hidestat64
#define __stat64 __hide__stat64
+#undef stat64
#undef __stat64
#define __NR___syscall_stat __NR_stat
#define __NR___syscall_stat64 __NR_stat64
static inline _syscall2(int, __syscall_stat64,