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 33 freebsd_instance :
44 image_family : freebsd-13-3
55 setup_script :
6- - pkg install -y libnghttp2 curl
6+ - pkg install -y libnghttp2 curl evdev-proto
77 - curl https://sh.rustup.rs -sSf --output rustup.sh
88 - sh rustup.sh -y --default-toolchain nightly --profile=minimal
99 - . $HOME/.cargo/env
1717 freebsd_instance :
1818 image : freebsd-14-1-release-amd64-ufs
1919 setup_script :
20- - pkg install -y libnghttp2 curl
20+ - pkg install -y libnghttp2 curl evdev-proto
2121 - curl https://sh.rustup.rs -sSf --output rustup.sh
2222 - sh rustup.sh -y --default-toolchain nightly --profile=minimal
2323 - . $HOME/.cargo/env
3131 freebsd_instance :
3232 image_family : freebsd-15-0-snap
3333 setup_script :
34- - pkg install -y libnghttp2 curl
34+ - pkg install -y libnghttp2 curl evdev-proto
3535 - curl https://sh.rustup.rs -sSf --output rustup.sh
3636 - sh rustup.sh -y --default-toolchain nightly --profile=minimal
3737 - . $HOME/.cargo/env
Original file line number Diff line number Diff line change @@ -1991,6 +1991,8 @@ fn test_freebsd(target: &str) {
19911991 // Required for making freebsd11_stat available in the headers
19921992 cfg. define ( "_WANT_FREEBSD11_STAT" , None ) ;
19931993
1994+ cfg. flag ( "-I/usr/local/include" ) ;
1995+
19941996 let freebsd13 = match freebsd_ver {
19951997 Some ( n) if n >= 13 => true ,
19961998 _ => false ,
@@ -2066,6 +2068,7 @@ fn test_freebsd(target: &str) {
20662068 "sys/eui64.h" ,
20672069 "sys/event.h" ,
20682070 [ freebsd13] : "sys/eventfd.h" ,
2071+ [ freebsd13] : "linux/input.h" ,
20692072 "sys/extattr.h" ,
20702073 "sys/file.h" ,
20712074 "sys/ioctl.h" ,
@@ -2091,6 +2094,7 @@ fn test_freebsd(target: &str) {
20912094 "sys/thr.h" ,
20922095 "sys/time.h" ,
20932096 [ freebsd14 || freebsd15] : "sys/timerfd.h" ,
2097+ [ freebsd14 || freebsd15] : "linux/input.h" ,
20942098 "sys/times.h" ,
20952099 "sys/timex.h" ,
20962100 "sys/types.h" ,
@@ -2164,6 +2168,7 @@ fn test_freebsd(target: &str) {
21642168 "type_" if struct_ == "rtprio" => "type" . to_string ( ) ,
21652169 "type_" if struct_ == "sockstat" => "type" . to_string ( ) ,
21662170 "type_" if struct_ == "devstat_match_table" => "type" . to_string ( ) ,
2171+ "type_" if struct_ == "input_event" => "type" . to_string ( ) ,
21672172 s => s. to_string ( ) ,
21682173 }
21692174 } ) ;
Original file line number Diff line number Diff line change @@ -288,6 +288,22 @@ s! {
288288 pub sem_flg: :: c_short,
289289 }
290290
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+
291307 pub struct msqid_ds {
292308 pub msg_perm: :: ipc_perm,
293309 __unused1: * mut :: c_void,
You can’t perform that action at this time.
0 commit comments