about summary refs log tree commit diff
path: root/io/sys
diff options
context:
space:
mode:
Diffstat (limited to 'io/sys')
-rw-r--r--io/sys/stat.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/io/sys/stat.h b/io/sys/stat.h
index d8d8620198..7a8c8b3e1e 100644
--- a/io/sys/stat.h
+++ b/io/sys/stat.h
@@ -360,7 +360,9 @@ extern __inline__ int mknod (__const char *__path, __mode_t __mode,
 }
 # endif
 
-# ifdef __USE_LARGEFILE64
+# if defined __USE_LARGEFILE64 \
+  && (! defined __USE_FILE_OFFSET64 \
+      || (defined __REDIRECT && defined __OPTIMIZE__))
 extern __inline__ int stat64 (__const char *__path,
 			      struct stat64 *__statbuf) __THROW
 {