diff --git a/ci/build.sh b/ci/build.sh index 7914a71c21494..a593055834156 100644 --- a/ci/build.sh +++ b/ci/build.sh @@ -216,6 +216,7 @@ for TARGET in $TARGETS; do fi done +# Targets which are not available via rustup and must be built with -Zbuild-std RUST_LINUX_NO_CORE_TARGETS="\ aarch64-pc-windows-msvc \ aarch64-unknown-freebsd \ @@ -225,6 +226,7 @@ aarch64-unknown-openbsd \ aarch64-wrs-vxworks \ armebv7r-none-eabi \ armebv7r-none-eabihf \ +armv7-unknown-linux-uclibceabihf \ armv7-wrs-vxworks-eabihf \ armv7r-none-eabi \ armv7r-none-eabihf \ diff --git a/src/unix/linux_like/linux/gnu/mod.rs b/src/unix/linux_like/linux/gnu/mod.rs index 69f1e01440abd..f1d4a109164e6 100644 --- a/src/unix/linux_like/linux/gnu/mod.rs +++ b/src/unix/linux_like/linux/gnu/mod.rs @@ -1333,6 +1333,8 @@ extern "C" { pub fn pthread_setname_np(thread: ::pthread_t, name: *const ::c_char) -> ::c_int; pub fn sethostid(hostid: ::c_long) -> ::c_int; + + pub fn memfd_create(name: *const ::c_char, flags: ::c_uint) -> ::c_int; } extern "C" { diff --git a/src/unix/linux_like/linux/mod.rs b/src/unix/linux_like/linux/mod.rs index b4eb0d006268f..ed70756a0e627 100644 --- a/src/unix/linux_like/linux/mod.rs +++ b/src/unix/linux_like/linux/mod.rs @@ -3923,8 +3923,6 @@ extern "C" { needlelen: ::size_t, ) -> *mut ::c_void; pub fn sched_getcpu() -> ::c_int; - - pub fn memfd_create(name: *const ::c_char, flags: ::c_uint) -> ::c_int; } cfg_if! { diff --git a/src/unix/linux_like/linux/musl/mod.rs b/src/unix/linux_like/linux/musl/mod.rs index 78b0c3e1500d3..463b6831cca6a 100644 --- a/src/unix/linux_like/linux/musl/mod.rs +++ b/src/unix/linux_like/linux/musl/mod.rs @@ -770,6 +770,8 @@ extern "C" { pub fn clock_adjtime(clk_id: ::clockid_t, buf: *mut ::timex) -> ::c_int; pub fn ctermid(s: *mut ::c_char) -> *mut ::c_char; + + pub fn memfd_create(name: *const ::c_char, flags: ::c_uint) -> ::c_int; } cfg_if! {