summaryrefslogtreecommitdiff
path: root/src/android/camera_device.cpp
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2021-05-27 03:49:25 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2021-05-31 19:26:59 +0300
commitb602bbe8116695779abc246929b4a8b8949e59d4 (patch)
treef7f08e62dde2c238bbcb347a80e3f741796f4f67 /src/android/camera_device.cpp
parent3370b6d0a0dfe1b554865d6e5bb8e20049220bf0 (diff)
android: Don't rely on indirect inclusion of unistd.h
The standard C library close() and lseek() functions require inclusion of the unistd.h header. Include it explicitly where needed instead of relying on indirect inclusion. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Hirokazu Honda <hiroh@chromium.org> Tested-by: Paul Elder <paul.elder@ideasonboard.com>
Diffstat (limited to 'src/android/camera_device.cpp')
-rw-r--r--src/android/camera_device.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/android/camera_device.cpp b/src/android/camera_device.cpp
index 946ddc7a..fddc07ff 100644
--- a/src/android/camera_device.cpp
+++ b/src/android/camera_device.cpp
@@ -15,6 +15,7 @@
#include <fstream>
#include <sys/mman.h>
#include <tuple>
+#include <unistd.h>
#include <vector>
#include <libcamera/control_ids.h>