summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common-generic
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/common-generic')
-rw-r--r--libc/sysdeps/linux/common-generic/bits/kernel_stat.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/common-generic/bits/kernel_stat.h b/libc/sysdeps/linux/common-generic/bits/kernel_stat.h
index a6f1d6c75..843a1d1a6 100644
--- a/libc/sysdeps/linux/common-generic/bits/kernel_stat.h
+++ b/libc/sysdeps/linux/common-generic/bits/kernel_stat.h
@@ -13,8 +13,16 @@
* The stat structure defined in
* libc/sysdeps/linux/common-generic/bits/stat.h
* is the same as the kernel one for new architectures
+ *
+ * For the common-generic ABI we really don't need this file at all
+ * However that requires more #ifndef in relevant wrappers,
+ * further uglifying them
*/
+#if defined __UCLIBC_HAS_LFS__
+#define kernel_stat64 stat64
+#else
#define kernel_stat64 stat
+#endif
#endif /* _BITS_STAT_STRUCT_H */