summaryrefslogtreecommitdiff
path: root/src/unix/bsd/apple/mod.rs
diff options
context:
space:
mode:
authorMads Marquart <mads@marquart.dk>2023-01-21 18:52:37 +0100
committerMads Marquart <mads@marquart.dk>2023-01-21 18:52:37 +0100
commit07e417b7b4f21114fe49529d999bf208c9088371 (patch)
treee5c5497f03da2c96d9e6630da3e7aef5f204c663 /src/unix/bsd/apple/mod.rs
parentf1bb40aac53a91826a3f86598702a43b7826bde3 (diff)
downloadrust-libc-07e417b7b4f21114fe49529d999bf208c9088371.tar.gz
Add pthread_main_np on Apple targets
Available since macOS 10.4 and iOS 2.0 Source: https://github.com/apple-oss-distributions/libpthread/blob/67e155c94093be9a204b69637d198eceff2c7c46/include/pthread/pthread.h#L537-L539
Diffstat (limited to 'src/unix/bsd/apple/mod.rs')
-rw-r--r--src/unix/bsd/apple/mod.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/unix/bsd/apple/mod.rs b/src/unix/bsd/apple/mod.rs
index dd4f48dd42..24a6d61033 100644
--- a/src/unix/bsd/apple/mod.rs
+++ b/src/unix/bsd/apple/mod.rs
@@ -5197,6 +5197,7 @@ extern "C" {
attr: *const pthread_condattr_t,
pshared: *mut ::c_int,
) -> ::c_int;
+ pub fn pthread_main_np() -> ::c_int;
pub fn pthread_mutexattr_setpshared(
attr: *mut pthread_mutexattr_t,
pshared: ::c_int,