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: effe4d6ced ("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>
This commit is contained in:
Madhavan Krishnan
2020-01-31 10:32:20 +01:00
committed by Kieran Bingham
parent 1a6d0f5e9a
commit b448bfb426

View File

@@ -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>