Signed-off-by: Jonas Bonn <[email protected]>
---
libc/sysdeps/linux/common/fstatfs.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/libc/sysdeps/linux/common/fstatfs.c
b/libc/sysdeps/linux/common/fstatfs.c
index fa0024a..8ce817e 100644
--- a/libc/sysdeps/linux/common/fstatfs.c
+++ b/libc/sysdeps/linux/common/fstatfs.c
@@ -10,7 +10,7 @@
#include <sys/syscall.h>
#include <sys/vfs.h>
-#ifndef __USE_FILE_OFFSET64
+#ifndef __USE_FILE_OFFSET64 && define __NR_fstatfs
extern int fstatfs (int __fildes, struct statfs *__buf)
__THROW __nonnull ((2));
#else
@@ -22,6 +22,8 @@ extern int __REDIRECT_NTH (fstatfs, (int __fildes, struct
statfs *__buf),
# endif
#endif
+#ifdef __NR_fstatfs
+
extern __typeof(fstatfs) __libc_fstatfs attribute_hidden;
#define __NR___libc_fstatfs __NR_fstatfs
_syscall2(int, __libc_fstatfs, int, fd, struct statfs *, buf)
@@ -29,3 +31,5 @@ _syscall2(int, __libc_fstatfs, int, fd, struct statfs *, buf)
#if defined __UCLIBC_LINUX_SPECIFIC__
weak_alias(__libc_fstatfs,fstatfs)
#endif
+
+#endif
--
1.7.5.4
_______________________________________________
uClibc mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/uclibc