about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/i386/lxstat.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/unix/sysv/linux/i386/lxstat.c')
-rw-r--r--sysdeps/unix/sysv/linux/i386/lxstat.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/i386/lxstat.c b/sysdeps/unix/sysv/linux/i386/lxstat.c
index f40bc2bc5f..ee89ec125a 100644
--- a/sysdeps/unix/sysv/linux/i386/lxstat.c
+++ b/sysdeps/unix/sysv/linux/i386/lxstat.c
@@ -47,7 +47,9 @@ extern int __have_no_stat64;
 int
 __lxstat (int vers, const char *name, struct stat *buf)
 {
+#if __ASSUME_STAT64_SYSCALL == 0
   struct kernel_stat kbuf;
+#endif
   int result;
 
   if (vers == _STAT_VER_KERNEL)