Skip to content

Commit 012e964

Browse files
committed
Auto merge of rust-lang#22046 - mneumann:dragonfly-libstd-fixes, r=huonw
2 parents bfdcd34 + 859f4d9 commit 012e964

File tree

1 file changed

+3
-1
lines changed
  • src/libstd/sys/unix

1 file changed

+3
-1
lines changed

src/libstd/sys/unix/c.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ pub const WNOHANG: libc::c_int = 1;
7272
#[cfg(target_os = "linux")]
7373
pub const _SC_GETPW_R_SIZE_MAX: libc::c_int = 70;
7474
#[cfg(any(target_os = "macos",
75-
target_os = "freebsd"))]
75+
target_os = "freebsd",
76+
target_os = "dragonfly"))]
7677
pub const _SC_GETPW_R_SIZE_MAX: libc::c_int = 71;
7778
#[cfg(target_os = "openbsd")]
7879
pub const _SC_GETPW_R_SIZE_MAX: libc::c_int = 101;
@@ -94,6 +95,7 @@ pub struct passwd {
9495
#[repr(C)]
9596
#[cfg(any(target_os = "macos",
9697
target_os = "freebsd",
98+
target_os = "dragonfly",
9799
target_os = "openbsd"))]
98100
pub struct passwd {
99101
pub pw_name: *mut libc::c_char,

0 commit comments

Comments
 (0)