about summary refs log tree commit diff
path: root/sysdeps/posix/fdopendir.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/posix/fdopendir.c')
-rw-r--r--sysdeps/posix/fdopendir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/posix/fdopendir.c b/sysdeps/posix/fdopendir.c
index b690f7fc88..e424fbdaa2 100644
--- a/sysdeps/posix/fdopendir.c
+++ b/sysdeps/posix/fdopendir.c
@@ -29,7 +29,7 @@ __fdopendir (int fd)
 {
   struct stat64 statbuf;
 
-  if (__builtin_expect (__fxstat64 (_STAT_VER, fd, &statbuf), 0) < 0)
+  if (__builtin_expect (__fstat64 (fd, &statbuf), 0) < 0)
     return NULL;
   if (__glibc_unlikely (! S_ISDIR (statbuf.st_mode)))
     {