summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMadhavan Krishnan <madhavan.krishnan@linaro.org>2020-01-31 10:32:20 +0100
committerKieran Bingham <kieran.bingham@ideasonboard.com>2020-02-04 15:54:07 +0000
commitb448bfb426067a05d92a51f3ff123898a91ea643 (patch)
tree87ec23d3ea748cfc25ac13b7c8b9abd588841997
parent1a6d0f5e9a46f7bd32af1a0b2667f14e7911f93d (diff)
libcamera: pipeline_handler: Fix the compilation issue in musl
sys/sysmacros.h was an incorrect choice, which doesn't work with musl. POSIX mandates dev_t to be defined by sys/types.h, so utilise that header instead. Fixes: effe4d6ced88 ("libcamera: camera_manager, pipeline_handler: allow retrieving cameras by device numbers") Signed-off-by: Madhavan Krishnan <madhavan.krishnan@linaro.org> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
-rw-r--r--src/libcamera/include/pipeline_handler.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcamera/include/pipeline_handler.h b/src/libcamera/include/pipeline_handler.h
index a6c1e1fb..97157dd7 100644
--- a/src/libcamera/include/pipeline_handler.h
+++ b/src/libcamera/include/pipeline_handler.h
@@ -12,7 +12,7 @@
#include <memory>
#include <set>
#include <string>
-#include <sys/sysmacros.h>
+#include <sys/types.h>
#include <vector>
#include <ipa/ipa_interface.h>