Skip to content

Commit 1b1bf4d

Browse files
committed
Fix what can be at this stage
1 parent 9edc3a4 commit 1b1bf4d

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

libc-test/build.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -907,6 +907,7 @@ fn test_netbsd(target: &str) {
907907
"grp.h",
908908
"ifaddrs.h",
909909
"langinfo.h",
910+
"net/bpf.h",
910911
"net/if.h",
911912
"net/if_arp.h",
912913
"net/if_dl.h",

src/unix/bsd/netbsdlike/mod.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,14 @@ s! {
7272
pub uid: ::uid_t,
7373
pub gid: ::gid_t,
7474
pub mode: ::mode_t,
75+
#[cfg(target_os = "openbsd")]
7576
pub seq: ::c_ushort,
77+
#[cfg(target_os = "netbsd")]
78+
pub _seq: ::c_ushort,
79+
#[cfg(target_os = "openbsd")]
7680
pub key: ::key_t,
81+
#[cfg(target_os = "netbsd")]
82+
pub _key: ::key_t,
7783
}
7884

7985
pub struct ptrace_io_desc {

src/unix/bsd/netbsdlike/netbsd/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ pub type fsfilcnt_t = u64;
77
pub type idtype_t = ::c_int;
88
pub type mqd_t = ::c_int;
99
type __pthread_spin_t = __cpu_simple_lock_nv_t;
10-
pub type vm_size_t = ::uintptr_t;
10+
pub type vm_size_t = ::uintptr_t; // FIXME: deprecated since long time
1111
pub type lwpid_t = ::c_uint;
1212
pub type shmatt_t = ::c_uint;
1313

@@ -427,7 +427,7 @@ s_no_extra_traits! {
427427
pub ut_session: u16,
428428
pub ut_type: u16,
429429
pub ut_pid: ::pid_t,
430-
pub ut_exit: __exit_status,
430+
pub ut_exit: __exit_status, // FIXME: when anonymous struct are supported
431431
pub ut_ss: sockaddr_storage,
432432
pub ut_tv: ::timeval,
433433
pub ut_pad: [u8; _UTX_PADSIZE],

0 commit comments

Comments
 (0)