summaryrefslogtreecommitdiff
path: root/native/android
diff options
context:
space:
mode:
authorTom Cherry <tomcherry@google.com>2020-04-13 11:06:23 -0700
committerTom Cherry <tomcherry@google.com>2020-04-13 11:10:30 -0700
commit30f8f823aa0af75297929c0f727fbf82c68df410 (patch)
treeb99277c618daaec948b12a79dbd31d8e1e073003 /native/android
parent40517308f2c5153a38502cfae74ce1ed1b87baa3 (diff)
Include what you use: <fcntl.h>
This was transitively included, but no longer is, so it must be explicitly included. Exempt-From-Owner-Approval: Janitorial Test: build Change-Id: Id88ee5113aa9f0a223dfabfc164ce17747727647
Diffstat (limited to 'native/android')
-rw-r--r--native/android/sharedmem.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/native/android/sharedmem.cpp b/native/android/sharedmem.cpp
index 4410bd6fbeed..338b280a8ebe 100644
--- a/native/android/sharedmem.cpp
+++ b/native/android/sharedmem.cpp
@@ -16,6 +16,9 @@
#include <jni.h>
+#include <fcntl.h>
+#include <unistd.h>
+
#include <android/sharedmem.h>
#include <android/sharedmem_jni.h>
#include <cutils/ashmem.h>
@@ -23,7 +26,6 @@
#include <utils/Errors.h>
#include <mutex>
-#include <unistd.h>
static struct {
jclass clazz;