Skip to content

Commit 7bf913a

Browse files
committed
fix FreeBSD 12 CI by skipping it
1 parent 224172e commit 7bf913a

File tree

4 files changed

+7
-24
lines changed

4 files changed

+7
-24
lines changed

libc-test/build.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2417,6 +2417,7 @@ fn test_freebsd(target: &str) {
24172417
// the struct "__kvm" is quite tricky to bind so since we only use a pointer to it
24182418
// for now, it doesn't matter too much...
24192419
"kvm_t" => true,
2420+
"eventfd_t" if Some(13) > freebsd_ver => true,
24202421

24212422
_ => false,
24222423
}

src/unix/bsd/freebsdlike/freebsd/mod.rs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5385,14 +5385,8 @@ extern "C" {
53855385
pub fn setaudit(auditinfo: *const auditinfo_t) -> ::c_int;
53865386

53875387
pub fn eventfd(init: ::c_uint, flags: ::c_int) -> ::c_int;
5388-
pub fn eventfd_read(
5389-
fd: ::c_int,
5390-
value: *mut eventfd_t,
5391-
) -> ::c_int;
5392-
pub fn eventfd_write(
5393-
fd: ::c_int,
5394-
value: eventfd_t,
5395-
) -> ::c_int;
5388+
pub fn eventfd_read(fd: ::c_int, value: *mut eventfd_t) -> ::c_int;
5389+
pub fn eventfd_write(fd: ::c_int, value: eventfd_t) -> ::c_int;
53965390

53975391
pub fn fdatasync(fd: ::c_int) -> ::c_int;
53985392

src/unix/linux_like/android/mod.rs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3568,14 +3568,8 @@ extern "C" {
35683568
flags: ::c_uint,
35693569
) -> ::ssize_t;
35703570
pub fn eventfd(init: ::c_uint, flags: ::c_int) -> ::c_int;
3571-
pub fn eventfd_read(
3572-
fd: ::c_int,
3573-
value: *mut eventfd_t,
3574-
) -> ::c_int;
3575-
pub fn eventfd_write(
3576-
fd: ::c_int,
3577-
value: eventfd_t,
3578-
) -> ::c_int;
3571+
pub fn eventfd_read(fd: ::c_int, value: *mut eventfd_t) -> ::c_int;
3572+
pub fn eventfd_write(fd: ::c_int, value: eventfd_t) -> ::c_int;
35793573
pub fn sched_rr_get_interval(pid: ::pid_t, tp: *mut ::timespec) -> ::c_int;
35803574
pub fn sem_timedwait(sem: *mut sem_t, abstime: *const ::timespec) -> ::c_int;
35813575
pub fn sem_getvalue(sem: *mut sem_t, sval: *mut ::c_int) -> ::c_int;

src/unix/linux_like/linux/mod.rs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4807,14 +4807,8 @@ extern "C" {
48074807
flags: ::c_uint,
48084808
) -> ::ssize_t;
48094809
pub fn eventfd(init: ::c_uint, flags: ::c_int) -> ::c_int;
4810-
pub fn eventfd_read(
4811-
fd: ::c_int,
4812-
value: *mut eventfd_t,
4813-
) -> ::c_int;
4814-
pub fn eventfd_write(
4815-
fd: ::c_int,
4816-
value: eventfd_t,
4817-
) -> ::c_int;
4810+
pub fn eventfd_read(fd: ::c_int, value: *mut eventfd_t) -> ::c_int;
4811+
pub fn eventfd_write(fd: ::c_int, value: eventfd_t) -> ::c_int;
48184812

48194813
pub fn sched_rr_get_interval(pid: ::pid_t, tp: *mut ::timespec) -> ::c_int;
48204814
pub fn sem_timedwait(sem: *mut sem_t, abstime: *const ::timespec) -> ::c_int;

0 commit comments

Comments
 (0)