Skip to content

Commit

Permalink
ioctl: fix build on 32-bit platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
adelva1984 authored and Gnurou committed Mar 27, 2024
1 parent 0831ab4 commit 0bb9464
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/src/ioctl/qbuf.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
//! Safe wrapper for the VIDIOC_(D)QBUF and VIDIOC_QUERYBUF ioctls.
use nix::libc::{suseconds_t, time_t};
use nix::errno::Errno;
use nix::sys::time::{TimeVal, TimeValLike};
use std::fmt::Debug;
Expand Down Expand Up @@ -147,7 +148,7 @@ impl<H: PlaneHandle> Default for QBuffer<H> {
}

impl<H: PlaneHandle> QBuffer<H> {
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
}
Expand Down

0 comments on commit 0bb9464

Please sign in to comment.