summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Anton Lundin <glance@acc.umu.se>2017-07-21 15:33:07 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-08-01 13:39:35 -0700
commita717cb3a4151ee3d12ab2ae607c661a8facfdfce (patch)
treecf7efbfc8528050a4fad23771ad3fcf3417bc974
parent7c6fa227eac300055c714be839274fc6f7e421cd (diff)
downloadsubsurface-a717cb3a4151ee3d12ab2ae607c661a8facfdfce.tar.gz
android: access() is declared in unistd.h
Calling access() makes no sense at all on android, but this atleast fixes a compilation error on ndk 15+. Signed-off-by: Anton Lundin <glance@acc.umu.se>
-rw-r--r--core/android.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/android.cpp b/core/android.cpp
index 9ea1ec971..c98321e70 100644
--- a/core/android.cpp
+++ b/core/android.cpp
@@ -8,6 +8,7 @@
#include <fcntl.h>
#include <libusb.h>
#include <errno.h>
+#include <unistd.h>
#include <QtAndroidExtras/QtAndroidExtras>
#include <QtAndroidExtras/QAndroidJniObject>