summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNolen Johnson <johnsonnolen@gmail.com>2023-06-17 13:34:40 -0400
committerNolen Johnson <johnsonnolen@gmail.com>2023-10-26 21:52:08 +0000
commit2ad8a91c21075bad0507d4d0f23df9ae69f97814 (patch)
tree1a59471788f7335d516cc2c4437f46c23bf629b8
parentca94928e5e2a7cd12532487d0e92513ce6bda659 (diff)
downloadcontexthub-2ad8a91c21075bad0507d4d0f23df9ae69f97814.tar.gz
contexthub-nano: Include headers for 4.4 kernels
* Still builds fine on 3.18 as well (not that we care). * Relevant error snippet: ``` device/google/contexthub/contexthubhal/NanohubHidlAdapter.cpp device/google/contexthub/contexthubhal/NanohubHidlAdapter.cpp:527:25: error: use of undeclared identifier 'O_RDONLY' int fd = open(file, O_RDONLY); ^ 1 error generated. 17:51:51 ninja failed with: exit status 1 ``` Change-Id: I7ec26215feb5b0065987168222311f699472c466
-rw-r--r--contexthubhal/NanohubHidlAdapter.cpp1
-rw-r--r--contexthubhal/system_comms.cpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/contexthubhal/NanohubHidlAdapter.cpp b/contexthubhal/NanohubHidlAdapter.cpp
index 671d7812..669011e5 100644
--- a/contexthubhal/NanohubHidlAdapter.cpp
+++ b/contexthubhal/NanohubHidlAdapter.cpp
@@ -24,6 +24,7 @@
#include "NanohubHidlAdapter.h"
#include "nanohub_perdevice.h"
+#include <fcntl.h>
#include <inttypes.h>
#include <log/log.h>
diff --git a/contexthubhal/system_comms.cpp b/contexthubhal/system_comms.cpp
index 30106995..01824af4 100644
--- a/contexthubhal/system_comms.cpp
+++ b/contexthubhal/system_comms.cpp
@@ -31,6 +31,7 @@
#include <log/log.h>
#include <endian.h>
+#include <fcntl.h>
#include <sys/stat.h>
#include <media/stagefright/foundation/ADebug.h>