File tree Expand file tree Collapse file tree 3 files changed +24
-3
lines changed
src/unix/bsd/freebsdlike/freebsd Expand file tree Collapse file tree 3 files changed +24
-3
lines changed Original file line number Diff line number Diff line change 3
3
freebsd_instance :
4
4
image_family : freebsd-13-3
5
5
setup_script :
6
- - pkg install -y libnghttp2 curl
6
+ - pkg install -y libnghttp2 curl evdev-proto
7
7
- curl https://sh.rustup.rs -sSf --output rustup.sh
8
8
- sh rustup.sh -y --default-toolchain nightly --profile=minimal
9
9
- . $HOME/.cargo/env
17
17
freebsd_instance :
18
18
image : freebsd-14-1-release-amd64-ufs
19
19
setup_script :
20
- - pkg install -y libnghttp2 curl
20
+ - pkg install -y libnghttp2 curl evdev-proto
21
21
- curl https://sh.rustup.rs -sSf --output rustup.sh
22
22
- sh rustup.sh -y --default-toolchain nightly --profile=minimal
23
23
- . $HOME/.cargo/env
31
31
freebsd_instance :
32
32
image_family : freebsd-15-0-snap
33
33
setup_script :
34
- - pkg install -y libnghttp2 curl
34
+ - pkg install -y libnghttp2 curl evdev-proto
35
35
- curl https://sh.rustup.rs -sSf --output rustup.sh
36
36
- sh rustup.sh -y --default-toolchain nightly --profile=minimal
37
37
- . $HOME/.cargo/env
Original file line number Diff line number Diff line change @@ -1990,6 +1990,9 @@ fn test_freebsd(target: &str) {
1990
1990
cfg. define ( "_WITH_GETLINE" , None ) ;
1991
1991
// Required for making freebsd11_stat available in the headers
1992
1992
cfg. define ( "_WANT_FREEBSD11_STAT" , None ) ;
1993
+ cfg. define ( "LIBICONV_PLUG" , None ) ;
1994
+
1995
+ cfg. flag ( "-I/usr/local/include" ) ;
1993
1996
1994
1997
let freebsd13 = match freebsd_ver {
1995
1998
Some ( n) if n >= 13 => true ,
@@ -2091,6 +2094,7 @@ fn test_freebsd(target: &str) {
2091
2094
"sys/thr.h" ,
2092
2095
"sys/time.h" ,
2093
2096
[ freebsd14 || freebsd15] : "sys/timerfd.h" ,
2097
+ [ freebsd13 || freebsd14 || freebsd15] : "linux/input.h" ,
2094
2098
"sys/times.h" ,
2095
2099
"sys/timex.h" ,
2096
2100
"sys/types.h" ,
@@ -2164,6 +2168,7 @@ fn test_freebsd(target: &str) {
2164
2168
"type_" if struct_ == "rtprio" => "type" . to_string ( ) ,
2165
2169
"type_" if struct_ == "sockstat" => "type" . to_string ( ) ,
2166
2170
"type_" if struct_ == "devstat_match_table" => "type" . to_string ( ) ,
2171
+ "type_" if struct_ == "input_event" => "type" . to_string ( ) ,
2167
2172
s => s. to_string ( ) ,
2168
2173
}
2169
2174
} ) ;
Original file line number Diff line number Diff line change @@ -288,6 +288,22 @@ s! {
288
288
pub sem_flg: :: c_short,
289
289
}
290
290
291
+ pub struct input_event {
292
+ pub time: :: timeval,
293
+ pub type_: :: u_short,
294
+ pub code: :: u_short,
295
+ pub value: :: c_int,
296
+ }
297
+
298
+ pub struct input_absinfo {
299
+ pub value: :: c_int,
300
+ pub minimum: :: c_int,
301
+ pub maximum: :: c_int,
302
+ pub fuzz: :: c_int,
303
+ pub flat: :: c_int,
304
+ pub resolution: :: c_int,
305
+ }
306
+
291
307
pub struct msqid_ds {
292
308
pub msg_perm: :: ipc_perm,
293
309
__unused1: * mut :: c_void,
You can’t perform that action at this time.
0 commit comments