summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBogDan Vatra <bogdan@kde.org>2013-09-28 18:18:53 +0300
committerSergio Ahumada <sergio.ahumada@digia.com>2013-10-04 08:11:00 +0200
commit58223ab8aaafe3d313863a9b757e9c9bd6243766 (patch)
tree08cbc937e0891e70e491a9179ef331118a9126be
parentc6de37bc6e07f63866d46aae4a549d1bbf1a6052 (diff)
Fix compile on Android.HEADmaster
Change-Id: I1be0423fcda0ddd30550d4a4a25581eb019282a7 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
-rw-r--r--src/partition/jsondbpartition.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/partition/jsondbpartition.cpp b/src/partition/jsondbpartition.cpp
index 92f76192..dee7380e 100644
--- a/src/partition/jsondbpartition.cpp
+++ b/src/partition/jsondbpartition.cpp
@@ -58,8 +58,14 @@
#include <fcntl.h>
#include <unistd.h>
#include <stdlib.h>
-#ifndef Q_OS_WIN32
-#include <sys/statvfs.h>
+#if !defined (Q_OS_WIN32)
+# if !defined(Q_OS_ANDROID)
+# include <sys/statvfs.h>
+# else
+# include <sys/vfs.h>
+# define statvfs statfs
+# define fstatvfs fstatfs
+# endif
#endif
#include <errno.h>