Skip to content

Commit

Permalink
Fix use of nix in dmabuf module
Browse files Browse the repository at this point in the history
  • Loading branch information
ids1024 authored and wash2 committed Oct 5, 2023
1 parent bf7d667 commit d851b66
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ bitflags = "2.4"
bytemuck = { version = "1.13.0", optional = true }
cursor-icon = "1.0.0"
dlib = "0.5"
libc = "0.2.148"
log = "0.4"
memmap2 = "0.8.0"
rustix = { version = "0.38.15", features = ["fs", "pipe", "shm"] }
Expand Down
2 changes: 1 addition & 1 deletion src/dmabuf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use wayland_protocols::wp::linux_dmabuf::zv1::client::{
#[cfg(target_os = "freebsd")]
type dev_t = u64;
#[cfg(not(target_os = "freebsd"))]
use nix::libc::dev_t;
use libc::dev_t;

/// A preference tranche of dmabuf formats
#[derive(Debug)]
Expand Down

0 comments on commit d851b66

Please sign in to comment.