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>
This commit is contained in:
parent
3370b6d0a0
commit
b602bbe811
3 changed files with 4 additions and 0 deletions
|
@ -15,6 +15,7 @@
|
|||
#include <fstream>
|
||||
#include <sys/mman.h>
|
||||
#include <tuple>
|
||||
#include <unistd.h>
|
||||
#include <vector>
|
||||
|
||||
#include <libcamera/control_ids.h>
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
#include <errno.h>
|
||||
#include <string.h>
|
||||
#include <sys/poll.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "camera_device.h"
|
||||
|
||||
|
|
|
@ -7,6 +7,8 @@
|
|||
|
||||
#include "../camera_buffer.h"
|
||||
|
||||
#include <unistd.h>
|
||||
|
||||
#include "libcamera/internal/buffer.h"
|
||||
#include "libcamera/internal/log.h"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue