summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2003-01-28 08:34:57 +0000
committerEric Andersen <andersen@codepoet.org>2003-01-28 08:34:57 +0000
commitd40e0ed3bf868164b6c3d9c139d1517fadba2d08 (patch)
tree424199a41fc964d1aa2b802adf87ed2a91a9b42c /libc
parent14a401aa273c94f6fdaa8ec9fc39aa272378aab7 (diff)
Patch from Stefan Allius to fix the build when
large file support is disabled
Diffstat (limited to 'libc')
-rw-r--r--libc/sysdeps/linux/common/xstatconv.c2
-rw-r--r--libc/sysdeps/linux/common/xstatconv.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/common/xstatconv.c b/libc/sysdeps/linux/common/xstatconv.c
index e35e900ef..fc25c43db 100644
--- a/libc/sysdeps/linux/common/xstatconv.c
+++ b/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
diff --git a/libc/sysdeps/linux/common/xstatconv.h b/libc/sysdeps/linux/common/xstatconv.h
index fd3b81b34..159eb6bd0 100644
--- a/libc/sysdeps/linux/common/xstatconv.h
+++ b/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