From 1b1133555efaefe872191f24f989a986ac251830 Mon Sep 17 00:00:00 2001 From: Vineet Gupta Date: Thu, 14 Mar 2013 17:51:27 +0530 Subject: fstat64: Fix Build warnings with common-generic ABI build CC libc/sysdeps/linux/common/fstat64.os In file included from libc/sysdeps/linux/common/fstat64.c:16: libc/sysdeps/linux/common/xstatconv.h:28: warning: 'struct kernel_stat' declared inside parameter list libc/sysdeps/linux/common/xstatconv.h:28: warning: its scope is only this definition or declaration, which is probably not what you want libc/sysdeps/linux/common/fstat64.c: In function 'fstat64': libc/sysdeps/linux/common/fstat64.c:33: warning: passing argument 2 of '__syscall_fstat64' from incompatible pointer type libc/sysdeps/linux/common/fstat64.c:18: note: expected 'struct stat *' but argument is of type 'struct stat64 *' ------------------------------------------------------------------- Signed-off-by: Vineet Gupta Cc: Markos Chandras Signed-off-by: Bernhard Reutner-Fischer --- libc/sysdeps/linux/common-generic/bits/kernel_stat.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'libc/sysdeps/linux/common-generic') 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 */ -- cgit v1.2.3