summaryrefslogtreecommitdiff
path: root/libc/misc
diff options
context:
space:
mode:
authorEugene Rudoy <gene.devel@gmail.com>2017-11-04 22:26:21 +0100
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2017-11-25 17:46:25 +0100
commit40308d7d3b61f83bb5cc3cb406dac5dd318a48cd (patch)
treee7e9cdd8b82cfe10f88cf5119dd3aa7be69f2107 /libc/misc
parent13a6109ba16885e9ade85cbc51851b386f82a5eb (diff)
Only emulate fstatfs64 if __NR_fstatfs64 is not defined
Follow-up of e3d6c8bffe79b2c070bc7a3aabc9d9c65f6b099e Signed-off-by: Eugene Rudoy <gene.devel@gmail.com> Signed-off-by: Ralf Friedl <Ralf.Friedl@online.de>
Diffstat (limited to 'libc/misc')
-rw-r--r--libc/misc/statfs/fstatfs64.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/libc/misc/statfs/fstatfs64.c b/libc/misc/statfs/fstatfs64.c
index bb9ca3063..6c2c41822 100644
--- a/libc/misc/statfs/fstatfs64.c
+++ b/libc/misc/statfs/fstatfs64.c
@@ -25,7 +25,7 @@
#include <sys/syscall.h>
#include <stddef.h>
-#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 */