summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAzureMarker <mark.drobnak@gmail.com>2022-02-13 18:42:37 -0800
committerMark Drobnak <mark.drobnak@gmail.com>2022-03-06 12:31:32 -0800
commitd38b04a4ea065074379aedf1a11325c49dda8a1d (patch)
tree843d4f6c0fbfa57aa4c426d3683a879c7f5120bd
parent9405ad6b7702bd35fcb9725aa28795421b1626d2 (diff)
downloadrust-libc-d38b04a4ea065074379aedf1a11325c49dda8a1d.tar.gz
Add nonstandard pthread_getprocessorid_np function
-rw-r--r--src/unix/newlib/horizon/mod.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/unix/newlib/horizon/mod.rs b/src/unix/newlib/horizon/mod.rs
index bab91fde91..3967805e1b 100644
--- a/src/unix/newlib/horizon/mod.rs
+++ b/src/unix/newlib/horizon/mod.rs
@@ -229,6 +229,8 @@ extern "C" {
policy: ::c_int,
param: *const ::sched_param,
) -> ::c_int;
+
+ pub fn pthread_getprocessorid_np() -> ::c_int;
pub fn gethostid() -> ::c_long;
}