summaryrefslogtreecommitdiffstats
path: root/libc-top-half/musl
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-30 03:12:32 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-30 03:12:32 +0000
commitcc81ad06aca18ec55eccf982c6365152ede51933 (patch)
tree8f4de8378dee0c744d37c20321ed115cdf94d27b /libc-top-half/musl
parentReleasing progress-linux version 0.0~git20230621.7018e24-2~progress7.99u1. (diff)
downloadwasi-libc-cc81ad06aca18ec55eccf982c6365152ede51933.tar.xz
wasi-libc-cc81ad06aca18ec55eccf982c6365152ede51933.zip
Merging upstream version 0.0~git20230821.ec4566b.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'libc-top-half/musl')
-rw-r--r--libc-top-half/musl/src/thread/pthread_mutex_trylock.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libc-top-half/musl/src/thread/pthread_mutex_trylock.c b/libc-top-half/musl/src/thread/pthread_mutex_trylock.c
index c60b45f..2b06507 100644
--- a/libc-top-half/musl/src/thread/pthread_mutex_trylock.c
+++ b/libc-top-half/musl/src/thread/pthread_mutex_trylock.c
@@ -21,7 +21,9 @@ int __pthread_mutex_trylock_owner(pthread_mutex_t *m)
return 0;
}
}
+#ifdef __wasilibc_unmodified_upstream
if (own == 0x3fffffff) return ENOTRECOVERABLE;
+#endif
if (own || (old && !(type & 4))) return EBUSY;
if (type & 128) {