summaryrefslogtreecommitdiff
path: root/src/v4l2
diff options
context:
space:
mode:
authorHirokazu Honda <hiroh@chromium.org>2021-12-01 16:53:42 +0900
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2021-12-01 13:46:48 +0200
commit7e91f951604c17a091b8c05efa1d01eddbcdfdbf (patch)
tree43c43696afc608bfd80caa166c775880499bae90 /src/v4l2
parentc17f172842d17b6036e10b1775e89d0219c3b3f9 (diff)
libcamera: Correct include headers for Mutex classes
Mutex classes are defined in mutex.h. This replaces thread.h include for the Mutex classes with mutex.h. Signed-off-by: Hirokazu Honda <hiroh@chromium.org> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Umang Jain <umang.jain@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src/v4l2')
-rw-r--r--src/v4l2/v4l2_camera.h2
-rw-r--r--src/v4l2/v4l2_compat.cpp2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/v4l2/v4l2_camera.h b/src/v4l2/v4l2_camera.h
index bf1b6de4..9307d61d 100644
--- a/src/v4l2/v4l2_camera.h
+++ b/src/v4l2/v4l2_camera.h
@@ -10,8 +10,8 @@
#include <deque>
#include <utility>
+#include <libcamera/base/mutex.h>
#include <libcamera/base/semaphore.h>
-#include <libcamera/base/thread.h>
#include <libcamera/camera.h>
#include <libcamera/file_descriptor.h>
diff --git a/src/v4l2/v4l2_compat.cpp b/src/v4l2/v4l2_compat.cpp
index fd73381d..1765fb5d 100644
--- a/src/v4l2/v4l2_compat.cpp
+++ b/src/v4l2/v4l2_compat.cpp
@@ -14,6 +14,8 @@
#include <sys/stat.h>
#include <sys/types.h>
+#include <libcamera/base/utils.h>
+
#define LIBCAMERA_PUBLIC __attribute__((visibility("default")))
using namespace libcamera;