@@ -28,7 +28,8 @@
#if defined(__sparc_v9__) && (__WORDSIZE == 64)
#define kernel_stat64 stat
#else
-#define kernel_stat stat
+/* #define kernel_stat stat */
+#define kernel_stat64 stat
#endif
#include <bits/kernel_stat.h>
#include <bits/kernel_types.h>
@@ -82,7 +83,7 @@
static __always_inline _syscall3(int, _dl_mprotect, const void *, addr,
unsigned long, len, int, prot)
-#if defined __NR_fstatat64 && !defined __NR_stat
+#if defined __NR_fstatat64
# define __NR__dl_fstatat64 __NR_fstatat64
static __always_inline _syscall4(int, _dl_fstatat64, int, fd, const
char *,