Browse Source

Patch from Stefan Allius to fix the build when
large file support is disabled

Eric Andersen 22 years ago
parent
commit
d40e0ed3bf
2 changed files with 4 additions and 0 deletions
  1. 2 0
      libc/sysdeps/linux/common/xstatconv.c
  2. 2 0
      libc/sysdeps/linux/common/xstatconv.h

+ 2 - 0
libc/sysdeps/linux/common/xstatconv.c

@@ -50,6 +50,7 @@ void __xstat_conv(struct kernel_stat *kbuf, struct stat *buf)
     buf->st_ctime = kbuf->st_ctime;
 }
 
+#if defined __UCLIBC_HAS_LFS__
 void __xstat64_conv(struct kernel_stat64 *kbuf, struct stat64 *buf)
 {
     /* Convert to current kernel version of `struct stat64'.  */
@@ -70,4 +71,5 @@ void __xstat64_conv(struct kernel_stat64 *kbuf, struct stat64 *buf)
     buf->st_mtime = kbuf->st_mtime;
     buf->st_ctime = kbuf->st_ctime;
 }
+#endif
 

+ 2 - 0
libc/sysdeps/linux/common/xstatconv.h

@@ -26,5 +26,7 @@
 #include <bits/kernel_stat.h>
 
 extern void __xstat_conv(struct kernel_stat *kbuf, struct stat *buf);
+#if defined __UCLIBC_HAS_LFS__
 extern void __xstat64_conv(struct kernel_stat64 *kbuf, struct stat64 *buf);
+#endif