Skip to content

Commit 9a52c08

Browse files
authored
Merge pull request #23 from caramelhooves/main
fix: build for android
2 parents c755e31 + e1615f1 commit 9a52c08

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ioctl.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use std::{
66
use rustix::{
77
fs::OFlags,
88
io::Errno,
9-
ioctl::{Updater, ioctl, opcode},
9+
ioctl::{Opcode, Updater, ioctl, opcode},
1010
};
1111

1212
const DMA_HEAP_IOC_MAGIC: u8 = b'H';
@@ -21,7 +21,7 @@ struct dma_heap_allocation_data {
2121
heap_flags: u64,
2222
}
2323

24-
const DMA_HEAP_IOC_ALLOC_OPCODE: u32 =
24+
const DMA_HEAP_IOC_ALLOC_OPCODE: Opcode =
2525
opcode::read_write::<dma_heap_allocation_data>(DMA_HEAP_IOC_MAGIC, DMA_HEAP_IOC_ALLOC);
2626

2727
fn dma_heap_alloc_ioctl(fd: BorrowedFd<'_>, data: &mut dma_heap_allocation_data) -> io::Result<()> {

0 commit comments

Comments
 (0)