[Toybox] [PATCH 04/10] lib/portability.h: In bionic there is no statvfs replace it with statfs.
Georgi Chorbadzhiyski
gf at unixsol.org
Wed Mar 7 16:38:56 PST 2012
---
lib/portability.h | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/lib/portability.h b/lib/portability.h
index d4edfb6..faa71ca 100644
--- a/lib/portability.h
+++ b/lib/portability.h
@@ -12,6 +12,10 @@
#include <stdio.h>
#define fdprintf(...) dprintf(__VA_ARGS__)
+#ifdef __ANDROID__
+#define statvfs statfs
+#endif
+
#ifdef __GNUC__
#define noreturn __attribute__((noreturn))
#else
--
1.7.5.1
1331167136.0
More information about the Toybox
mailing list