Fix type error after fcntl redefinition

This commit is contained in:
Jeremy Soller
2023-05-17 07:24:19 -06:00
parent 7d9cd5ab88
commit 7251fc7c47
+1 -1
View File
@@ -63,7 +63,7 @@ fn dup_write<T>(fd: c_int, name: &str, t: &T) -> syscall::Result<usize> {
pub unsafe extern "C" fn ioctl(fd: c_int, request: c_ulong, out: *mut c_void) -> c_int {
match request {
FIONBIO => {
let mut flags = fcntl::sys_fcntl(fd, fcntl::F_GETFL, 0usize);
let mut flags = fcntl::sys_fcntl(fd, fcntl::F_GETFL, 0);
if flags < 0 {
return -1;
}