summary refs log tree commit diff
path: root/io/stat64.c
diff options
context:
space:
mode:
Diffstat (limited to 'io/stat64.c')
-rw-r--r--io/stat64.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/io/stat64.c b/io/stat64.c
index 102dcc5d5a..ea47e13754 100644
--- a/io/stat64.c
+++ b/io/stat64.c
@@ -17,11 +17,10 @@
 
 #include <sys/stat.h>
 
-#undef __stat64
 int
 __stat64 (const char *file, struct stat64 *buf)
 {
-  return __xstat64 (_STAT_VER, file, buf);
+  return __fstatat64 (AT_FDCWD, file, buf, 0);
 }
 hidden_def (__stat64)
 weak_alias (__stat64, stat64)