summaryrefslogtreecommitdiff
path: root/src/android/camera_worker.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_worker.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_worker.cpp')
-rw-r--r--src/android/camera_worker.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/android/camera_worker.cpp b/src/android/camera_worker.cpp
index 9f727826..98dddd9e 100644
--- a/src/android/camera_worker.cpp
+++ b/src/android/camera_worker.cpp
@@ -10,6 +10,7 @@
#include <errno.h>
#include <string.h>
#include <sys/poll.h>
+#include <unistd.h>
#include "camera_device.h"