--- a/package/uclibc/0015_uclibc_1.0.14-fstatfs64.patch 2017-11-20 11:29:01.671692614 +0100 +++ b/package/uclibc/0015_uclibc_1.0.14-fstatfs64.patch 2017-12-14 16:14:23.726324819 +0100 @@ -0,0 +1,41 @@ +From 40308d7d3b61f83bb5cc3cb406dac5dd318a48cd Mon Sep 17 00:00:00 2001 +From: Eugene Rudoy +Date: Sat, 4 Nov 2017 22:26:21 +0100 +Subject: [PATCH] Only emulate fstatfs64 if __NR_fstatfs64 is not defined + +Follow-up of e3d6c8bffe79b2c070bc7a3aabc9d9c65f6b099e + +Signed-off-by: Eugene Rudoy +Signed-off-by: Ralf Friedl +--- + libc/misc/statfs/fstatfs64.c | 7 +------ + 1 file changed, 1 insertion(+), 6 deletions(-) + +diff --git a/libc/misc/statfs/fstatfs64.c b/libc/misc/statfs/fstatfs64.c +index bb9ca30..6c2c418 100644 +--- a/libc/misc/statfs/fstatfs64.c ++++ b/libc/misc/statfs/fstatfs64.c +@@ -25,7 +25,7 @@ + #include + #include + +-#if defined __NR_fstatfs ++#if !defined __NR_fstatfs64 + extern __typeof(fstatfs) __libc_fstatfs; + + /* Return information about the filesystem on which FD resides. */ +@@ -55,11 +55,6 @@ int fstatfs64 (int fd, struct statfs64 *buf) + return 0; + } + #else +-/* +- * Use the fstatfs64 system call if fstatfs is not defined +- * This is for backwards compatibility and it should be +- * made default in the future +- */ + int fstatfs64(int fd, struct statfs64 *buf) + { + /* Signature has 2 arguments but syscalls wants 3 */ +-- +2.9.3 +