diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2024-06-24 17:03:26 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2024-06-26 12:07:11 +0300 |
commit | 1907c883cad5563dc082cd4624e8f0531e32ab9a (patch) | |
tree | b80c4941850a42f326669888e5ac5d91ed289e9d /src/v4l2/v4l2_compat.cpp | |
parent | a2e27f4f2b849f0095a822be686b9612e727a122 (diff) |
v4l2: v4l2_compat: Include missing headers
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@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'src/v4l2/v4l2_compat.cpp')
-rw-r--r-- | src/v4l2/v4l2_compat.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/v4l2/v4l2_compat.cpp b/src/v4l2/v4l2_compat.cpp index bd016cbd..db8c465c 100644 --- a/src/v4l2/v4l2_compat.cpp +++ b/src/v4l2/v4l2_compat.cpp @@ -11,9 +11,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> |