File tree 1 file changed +1
-9
lines changed
1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -115,17 +115,9 @@ mod job;
115
115
mod job {
116
116
use libc;
117
117
118
- //apparently glibc defines their own enum for this parameter, in a different type
119
- #[ cfg( not( any( target_env = "musl" , target_env = "musleabi" , target_env = "musleabihf" ,
120
- target_os = "emscripten" , target_arch = "mips" , target_arch = "mipsel" ) ) ) ]
121
- const PRIO_PGRP : libc:: c_uint = libc:: PRIO_PGRP as libc:: c_uint ;
122
- #[ cfg( any( target_env = "musl" , target_env = "musleabi" , target_env = "musleabihf" ,
123
- target_os = "emscripten" , target_arch = "mips" , target_arch = "mipsel" ) ) ]
124
- const PRIO_PGRP : libc:: c_int = libc:: PRIO_PGRP ;
125
-
126
118
pub unsafe fn setup ( build : & mut :: Build ) {
127
119
if build. config . low_priority {
128
- libc:: setpriority ( PRIO_PGRP , 0 , 10 ) ;
120
+ libc:: setpriority ( libc :: PRIO_PGRP as _ , 0 , 10 ) ;
129
121
}
130
122
}
131
123
}
You can’t perform that action at this time.
0 commit comments