|
84 | 84 | pub tm_zone: *mut ::c_char,
|
85 | 85 | }
|
86 | 86 |
|
87 |
| - #[cfg(not(target_os = "dragonfly"))] |
88 | 87 | pub struct utsname {
|
| 88 | + #[cfg(not(target_os = "dragonfly"))] |
89 | 89 | pub sysname: [::c_char; 256],
|
90 |
| - pub nodename: [::c_char; 256], |
91 |
| - pub release: [::c_char; 256], |
92 |
| - pub version: [::c_char; 256], |
93 |
| - pub machine: [::c_char; 256], |
94 |
| - } |
95 |
| - |
96 |
| - #[cfg(target_os = "dragonfly")] |
97 |
| - pub struct utsname { |
| 90 | + #[cfg(target_os = "dragonfly")] |
98 | 91 | pub sysname: [::c_char; 32],
|
| 92 | + #[cfg(not(target_os = "dragonfly"))] |
| 93 | + pub nodename: [::c_char; 256], |
| 94 | + #[cfg(target_os = "dragonfly")] |
99 | 95 | pub nodename: [::c_char; 32],
|
| 96 | + #[cfg(not(target_os = "dragonfly"))] |
| 97 | + pub release: [::c_char; 256], |
| 98 | + #[cfg(target_os = "dragonfly")] |
100 | 99 | pub release: [::c_char; 32],
|
| 100 | + #[cfg(not(target_os = "dragonfly"))] |
| 101 | + pub version: [::c_char; 256], |
| 102 | + #[cfg(target_os = "dragonfly")] |
101 | 103 | pub version: [::c_char; 32],
|
| 104 | + #[cfg(not(target_os = "dragonfly"))] |
| 105 | + pub machine: [::c_char; 256], |
| 106 | + #[cfg(target_os = "dragonfly")] |
102 | 107 | pub machine: [::c_char; 32],
|
103 | 108 | }
|
104 | 109 |
|
|
0 commit comments