[PATCH 05/10] v4l2: v4l2_compat: Include missing headers
Laurent Pinchart
laurent.pinchart at ideasonboard.com
Mon Jun 24 21:29:36 CEST 2024
The close() and ioctl() functions are declared in the unistd.h and
sys/ioctl.h headers. Include them to provide the declarations.
Signed-off-by: Laurent Pinchart <laurent.pinchart at ideasonboard.com>
---
src/v4l2/v4l2_compat.cpp | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/v4l2/v4l2_compat.cpp b/src/v4l2/v4l2_compat.cpp
index 8e2b7e924dfb..9dd1577dfbde 100644
--- a/src/v4l2/v4l2_compat.cpp
+++ b/src/v4l2/v4l2_compat.cpp
@@ -10,9 +10,11 @@
#include <errno.h>
#include <fcntl.h>
#include <stdarg.h>
+#include <sys/ioctl.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <sys/types.h>
+#include <unistd.h>
#include <libcamera/base/utils.h>
--
Regards,
Laurent Pinchart
More information about the libcamera-devel
mailing list