aboutsummaryrefslogtreecommitdiff
path: root/external/unbound/compat/getentropy_linux.c
diff options
context:
space:
mode:
authorMoroccanMalinois <MoroccanMalinois@protonmail.com>2017-01-05 01:11:05 +0000
committerMoroccanMalinois <MoroccanMalinois@protonmail.com>2017-01-05 01:11:05 +0000
commit80abc3bc4a73f3ba6ffd40b1a03de0cc4d01e3c9 (patch)
tree5b9f6c810e59d36607590a6e736858a7d7d3bf7f /external/unbound/compat/getentropy_linux.c
parentMerge pull request #1487 (diff)
downloadmonero-80abc3bc4a73f3ba6ffd40b1a03de0cc4d01e3c9.tar.xz
Build wallet with Android NDK
Diffstat (limited to '')
-rw-r--r--external/unbound/compat/getentropy_linux.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/external/unbound/compat/getentropy_linux.c b/external/unbound/compat/getentropy_linux.c
index 37d86a8f1..b8d4a2bd0 100644
--- a/external/unbound/compat/getentropy_linux.c
+++ b/external/unbound/compat/getentropy_linux.c
@@ -30,7 +30,13 @@
#ifdef HAVE_SYS_SYSCTL_H
#include <sys/sysctl.h>
#endif
+#ifdef __ANDROID__
+#include <sys/vfs.h>
+#define statvfs statfs
+#define fstatvfs fstatfs
+#else
#include <sys/statvfs.h>
+#endif
#include <sys/socket.h>
#include <sys/mount.h>
#include <sys/mman.h>