Skip to content

Commit 625655d

Browse files
authored
Fix NetBSD build error due to UData type mismatched (#1923)
1 parent 7ba0ccb commit 625655d

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ net = []
4747
log = { version = "0.4.8", optional = true }
4848

4949
[target.'cfg(unix)'.dependencies]
50-
libc = "0.2.159"
50+
libc = "0.2.178"
5151

5252
[target.'cfg(target_os = "hermit")'.dependencies]
53-
libc = "0.2.159"
53+
libc = "0.2.178"
5454

5555
[target.'cfg(windows)'.dependencies.windows-sys]
5656
version = "0.61"
@@ -68,7 +68,7 @@ features = [
6868

6969
[target.'cfg(target_os = "wasi")'.dependencies]
7070
wasi = "0.11.0"
71-
libc = "0.2.159"
71+
libc = "0.2.178"
7272

7373
[dev-dependencies]
7474
env_logger = { version = "0.11", default-features = false }

src/sys/unix/selector/kqueue.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,7 @@ type Flags = u16;
5050
type Flags = u32;
5151

5252
// Type of the `udata` field in the `kevent` structure.
53-
#[cfg(not(target_os = "netbsd"))]
5453
type UData = *mut libc::c_void;
55-
#[cfg(target_os = "netbsd")]
56-
type UData = libc::intptr_t;
5754

5855
macro_rules! kevent {
5956
($id: expr, $filter: expr, $flags: expr, $data: expr) => {

0 commit comments

Comments
 (0)