Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/unix/bsd/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,8 @@ f! {
}

extern {
pub fn getifaddrs(ifap: *mut *mut ::ifaddrs) -> ::c_int;
pub fn freeifaddrs(ifa: *mut ::ifaddrs);
pub fn setgroups(ngroups: ::c_int,
ptr: *const ::gid_t) -> ::c_int;
pub fn ioctl(fd: ::c_int, request: ::c_ulong, ...) -> ::c_int;
Expand Down
5 changes: 5 additions & 0 deletions src/unix/haiku/b32.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pub type c_long = i32;
pub type c_ulong = u32;

// intentionally not public, only used for fd_set
const ULONG_SIZE: usize = 32;
5 changes: 5 additions & 0 deletions src/unix/haiku/b64.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pub type c_ulong = u64;
pub type c_long = i64;

// intentionally not public, only used for fd_set
const ULONG_SIZE: usize = 64;
Loading