From 6091b1f0643f20435b97413635d935052f19c739 Mon Sep 17 00:00:00 2001 From: Alistair Delva Date: Mon, 25 Mar 2024 15:26:27 -0700 Subject: [PATCH] ioctl: fix build on 32-bit platforms --- lib/src/ioctl/qbuf.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/src/ioctl/qbuf.rs b/lib/src/ioctl/qbuf.rs index c78edd3..91a170d 100644 --- a/lib/src/ioctl/qbuf.rs +++ b/lib/src/ioctl/qbuf.rs @@ -1,5 +1,6 @@ //! Safe wrapper for the VIDIOC_(D)QBUF and VIDIOC_QUERYBUF ioctls. use nix::errno::Errno; +use nix::libc::{suseconds_t, time_t}; use nix::sys::time::{TimeVal, TimeValLike}; use std::fmt::Debug; use std::mem; @@ -147,7 +148,7 @@ impl Default for QBuffer { } impl QBuffer { - pub fn set_timestamp(mut self, sec: i64, usec: i64) -> Self { + pub fn set_timestamp(mut self, sec: time_t, usec: suseconds_t) -> Self { self.timestamp = TimeVal::new(sec, usec); self }