File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ fn main() {
27
27
let rumprun = target. contains ( "rumprun" ) ;
28
28
let solaris = target. contains ( "solaris" ) ;
29
29
let cloudabi = target. contains ( "cloudabi" ) ;
30
+ let redox = target. contains ( "redox" ) ;
30
31
let bsdlike = freebsd || apple || netbsd || openbsd || dragonfly;
31
32
let mut cfg = ctest:: TestGenerator :: new ( ) ;
32
33
@@ -354,7 +355,7 @@ fn main() {
354
355
}
355
356
}
356
357
357
- if cloudabi {
358
+ if cloudabi || redox {
358
359
cfg. header ( "strings.h" ) ;
359
360
}
360
361
Original file line number Diff line number Diff line change @@ -231,6 +231,10 @@ extern {
231
231
pub fn strdup ( cs : * const c_char ) -> * mut c_char ;
232
232
pub fn strpbrk ( cs : * const c_char , ct : * const c_char ) -> * mut c_char ;
233
233
pub fn strstr ( cs : * const c_char , ct : * const c_char ) -> * mut c_char ;
234
+ pub fn strcasestr ( cs : * const c_char , ct : * const c_char ) -> * mut c_char ;
235
+ pub fn strcasecmp ( s1 : * const c_char , s2 : * const c_char ) -> c_int ;
236
+ pub fn strncasecmp ( s1 : * const c_char , s2 : * const c_char ,
237
+ n : size_t ) -> c_int ;
234
238
pub fn strlen ( cs : * const c_char ) -> size_t ;
235
239
pub fn strnlen ( cs : * const c_char , maxlen : size_t ) -> size_t ;
236
240
pub fn strerror ( n : c_int ) -> * mut c_char ;
You can’t perform that action at this time.
0 commit comments