We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 054147a commit e91983dCopy full SHA for e91983d
src/unix/bsd/mod.rs
@@ -84,6 +84,7 @@ s! {
84
pub tm_zone: *mut ::c_char,
85
}
86
87
+ #[cfg(not(target_os = "dragonfly"))]
88
pub struct utsname {
89
pub sysname: [::c_char; 256],
90
pub nodename: [::c_char; 256],
@@ -92,6 +93,15 @@ s! {
92
93
pub machine: [::c_char; 256],
94
95
96
+ #[cfg(target_os = "dragonfly")]
97
+ pub struct utsname {
98
+ pub sysname: [::c_char; 32],
99
+ pub nodename: [::c_char; 32],
100
+ pub release: [::c_char; 32],
101
+ pub version: [::c_char; 32],
102
+ pub machine: [::c_char; 32],
103
+ }
104
+
105
pub struct msghdr {
106
pub msg_name: *mut ::c_void,
107
pub msg_namelen: ::socklen_t,
0 commit comments