summaryrefslogtreecommitdiff
path: root/src/android/mm
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/mm
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/mm')
-rw-r--r--src/android/mm/generic_camera_buffer.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/android/mm/generic_camera_buffer.cpp b/src/android/mm/generic_camera_buffer.cpp
index 334498c1..cca88cf3 100644
--- a/src/android/mm/generic_camera_buffer.cpp
+++ b/src/android/mm/generic_camera_buffer.cpp
@@ -7,6 +7,8 @@
#include "../camera_buffer.h"
+#include <unistd.h>
+
#include "libcamera/internal/buffer.h"
#include "libcamera/internal/log.h"