Skip to content

Commit 9ea78dc

Browse files
authored
Merge pull request #4254 from tgross35/fix-missing-abi
Resolve various CI issues
2 parents 0f9f8c9 + eb7045b commit 9ea78dc

File tree

4 files changed

+12
-6
lines changed

4 files changed

+12
-6
lines changed

.cirrus.yml

+3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ task:
33
env:
44
HOME: /tmp # cargo cache needs it
55
TARGET: x86_64-unknown-freebsd
6+
# FIXME(freebsd): FreeBSD has a segfault when `RUST_BACKTRACE` is set
7+
# https://github.com/rust-lang/rust/issues/132185
8+
RUST_BACKTRACE: "0"
69
matrix:
710
- name: nightly freebsd-13 i686
811
# Test i686 FreeBSD in 32-bit emulation on a 64-bit host.

.github/workflows/ci.yaml

+3-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,9 @@ jobs:
135135
- i686-unknown-linux-musl
136136
- loongarch64-unknown-linux-gnu
137137
- loongarch64-unknown-linux-musl
138-
- powerpc-unknown-linux-gnu
138+
# FIXME(ppc): SIGILL running tests, see
139+
# https://github.com/rust-lang/libc/pull/4254#issuecomment-2636288713
140+
# - powerpc-unknown-linux-gnu
139141
- powerpc64-unknown-linux-gnu
140142
- powerpc64le-unknown-linux-gnu
141143
- riscv64gc-unknown-linux-gnu

src/macros.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ cfg_if! {
243243
)*) => ($(
244244
#[inline]
245245
$(#[$attr])*
246-
pub $($constness)* unsafe extern fn $i($($arg: $argty),*) -> $ret
246+
pub $($constness)* unsafe extern "C" fn $i($($arg: $argty),*) -> $ret
247247
$body
248248
)*)
249249
}
@@ -257,7 +257,7 @@ cfg_if! {
257257
)*) => ($(
258258
#[inline]
259259
$(#[$attr])*
260-
pub $($constness)* extern fn $i($($arg: $argty),*) -> $ret
260+
pub $($constness)* extern "C" fn $i($($arg: $argty),*) -> $ret
261261
$body
262262
)*)
263263
}
@@ -285,7 +285,7 @@ cfg_if! {
285285
)*) => ($(
286286
#[inline]
287287
$(#[$attr])*
288-
pub unsafe extern fn $i($($arg: $argty),*) -> $ret
288+
pub unsafe extern "C" fn $i($($arg: $argty),*) -> $ret
289289
$body
290290
)*)
291291
}
@@ -299,7 +299,7 @@ cfg_if! {
299299
)*) => ($(
300300
#[inline]
301301
$(#[$attr])*
302-
pub extern fn $i($($arg: $argty),*) -> $ret
302+
pub extern "C" fn $i($($arg: $argty),*) -> $ret
303303
$body
304304
)*)
305305
}

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,8 @@ s! {
266266
pub st_blksize: crate::blksize_t,
267267
pub st_flags: crate::fflags_t,
268268
pub st_gen: u64,
269-
pub st_spare: [u64; 10],
269+
pub st_filerev: u64,
270+
pub st_spare: [u64; 9],
270271
}
271272
}
272273

0 commit comments

Comments
 (0)