File tree 2 files changed +7
-5
lines changed
2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 1
- --- src/ffi.rs.orig 2017-03-19 19:51:56.047460398 +0000
2
- +++ src/ffi.rs 2017-03-19 20:05 :08.080603066 +0000
1
+ --- src/ffi.rs.orig 2017-04-03 23:03:08.683728945 +0100
2
+ +++ src/ffi.rs 2017-04-03 23:03 :08.727729681 +0100
3
3
@@ -1,4 +1,12 @@
4
4
/* automatically generated by rust-bindgen */
5
5
+ #![allow(non_camel_case_types, non_snake_case)]
307
307
fn clone(&self) -> Self { *self }
308
308
}
309
309
@@ -641,28 +428,6 @@
310
- pub host: *mut ::std::os::raw::c_schar ,
310
+ pub host: *mut ::std::os::raw::c_char ,
311
311
pub priority: ::std::os::raw::c_ushort,
312
312
}
313
313
- #[test]
Original file line number Diff line number Diff line change 6
6
exit 1
7
7
fi
8
8
9
- # Prepare for bindgen, do it, and then apply manual patches .
9
+ # Prepare for bindgen, and do it .
10
10
(cd c-ares && ./buildconf && ./configure)
11
11
bindgen --whitelist-function=" ares.*" --whitelist-type=" ares.*" --whitelist-type=" apattern" --no-recursive-whitelist --no-unstable-rust --output=src/ffi.rs c-ares/ares.h
12
- patch -p0 < ffi.patch
13
12
14
13
# bindgen converts 'char' to 'c_schar' - see https://github.com/servo/rust-bindgen/issues/603.
15
14
# Since c-ares never uses 'signed char' we can compensate with simple search-and-replace.
16
15
sed -i ' s/c_schar/c_char/g' src/ffi.rs
17
16
17
+ # Apply manual patches.
18
+ patch -p0 < ffi.patch
19
+
18
20
# Generate constants.
19
21
./generate-constants.pl > src/constants.rs
You can’t perform that action at this time.
0 commit comments