diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/libcamera/media_device.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/libcamera/media_device.cpp b/src/libcamera/media_device.cpp index e1ae34f8..2c095566 100644 --- a/src/libcamera/media_device.cpp +++ b/src/libcamera/media_device.cpp @@ -9,6 +9,7 @@ #include <errno.h> #include <fcntl.h> +#include <stdint.h> #include <string> #include <string.h> #include <sys/ioctl.h> @@ -231,10 +232,10 @@ int MediaDevice::populate() */ while (true) { topology.topology_version = 0; - topology.ptr_entities = reinterpret_cast<__u64>(ents); - topology.ptr_interfaces = reinterpret_cast<__u64>(interfaces); - topology.ptr_links = reinterpret_cast<__u64>(links); - topology.ptr_pads = reinterpret_cast<__u64>(pads); + topology.ptr_entities = reinterpret_cast<uintptr_t>(ents); + topology.ptr_interfaces = reinterpret_cast<uintptr_t>(interfaces); + topology.ptr_links = reinterpret_cast<uintptr_t>(links); + topology.ptr_pads = reinterpret_cast<uintptr_t>(pads); ret = ioctl(fd_, MEDIA_IOC_G_TOPOLOGY, &topology); if (ret < 0) { |