File tree 1 file changed +7
-7
lines changed
1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -11,9 +11,9 @@ pub type pthread_t = ::uintptr_t;
11
11
pub type nfds_t = :: c_uint ;
12
12
13
13
#[ cfg( not( target_os = "dragonfly" ) ) ]
14
- const UTSNAME_LEN : usize = 256 ;
14
+ macro_rules! utsname_len { ( ) => ( 256 ) }
15
15
#[ cfg( target_os = "dragonfly" ) ]
16
- const UTSNAME_LEN : usize = 32 ;
16
+ macro_rules! utsname_len { ( ) => ( 32 ) }
17
17
18
18
s ! {
19
19
pub struct sockaddr {
90
90
}
91
91
92
92
pub struct utsname {
93
- pub sysname: [ :: c_char; UTSNAME_LEN ] ,
94
- pub nodename: [ :: c_char; UTSNAME_LEN ] ,
95
- pub release: [ :: c_char; UTSNAME_LEN ] ,
96
- pub version: [ :: c_char; UTSNAME_LEN ] ,
97
- pub machine: [ :: c_char; UTSNAME_LEN ] ,
93
+ pub sysname: [ :: c_char; utsname_len! ( ) ] ,
94
+ pub nodename: [ :: c_char; utsname_len! ( ) ] ,
95
+ pub release: [ :: c_char; utsname_len! ( ) ] ,
96
+ pub version: [ :: c_char; utsname_len! ( ) ] ,
97
+ pub machine: [ :: c_char; utsname_len! ( ) ] ,
98
98
}
99
99
100
100
pub struct msghdr {
You can’t perform that action at this time.
0 commit comments