]> Git Repo - uclibc-ng.git/commitdiff
fstat64: Fix Build warnings with common-generic ABI build
authorVineet Gupta <[email protected]>
Thu, 14 Mar 2013 12:21:27 +0000 (17:51 +0530)
committerBernhard Reutner-Fischer <[email protected]>
Thu, 14 Mar 2013 21:27:19 +0000 (22:27 +0100)
  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 <[email protected]>
Cc: Markos Chandras <[email protected]>
Signed-off-by: Bernhard Reutner-Fischer <[email protected]>
libc/sysdeps/linux/common-generic/bits/kernel_stat.h
libc/sysdeps/linux/common/xstatconv.h

index a6f1d6c7537470cc8dda835d46c2c39dc4c21268..843a1d1a6ee22c701adfea76ec90e87bfeccb318 100644 (file)
  * 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 */
 
index a9e563f00c9424239f4de178b7e2fdbdf357c2b2..cd4d7e9cf9abae60a9ff16c038559b51a8bfa60e 100644 (file)
 #include <features.h>
 #include <bits/kernel_stat.h>
 
+#ifdef __ARCH_HAS_DEPRECATED_SYSCALLS__
 extern void __xstat_conv(struct kernel_stat *kbuf, struct stat *buf) attribute_hidden;
 extern void __xstat32_conv(struct kernel_stat64 *kbuf, struct stat *buf) attribute_hidden;
 #if defined __UCLIBC_HAS_LFS__
 extern void __xstat64_conv(struct kernel_stat64 *kbuf, struct stat64 *buf) attribute_hidden;
 #endif
+#endif
 
This page took 0.049338 seconds and 4 git commands to generate.