[libcamera-devel] [PATCH] libcamera: device_enumerator_udev: Include missing header
Laurent Pinchart
laurent.pinchart at ideasonboard.com
Mon Apr 29 01:23:22 CEST 2019
The makedev() macro is defined in sys/sysmacros.h, include the header
explicitly.
Signed-off-by: Laurent Pinchart <laurent.pinchart at ideasonboard.com>
---
src/libcamera/device_enumerator_udev.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/libcamera/device_enumerator_udev.cpp b/src/libcamera/device_enumerator_udev.cpp
index cb2d21b90506..86f6ca184698 100644
--- a/src/libcamera/device_enumerator_udev.cpp
+++ b/src/libcamera/device_enumerator_udev.cpp
@@ -11,6 +11,7 @@
#include <libudev.h>
#include <string.h>
#include <sys/ioctl.h>
+#include <sys/sysmacros.h>
#include <unistd.h>
#include <libcamera/event_notifier.h>
--
Regards,
Laurent Pinchart
More information about the libcamera-devel
mailing list