diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-30 03:12:31 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-30 03:12:31 +0000 |
commit | 26711fdc8922df06123f2431e7cd9a27cdc2388a (patch) | |
tree | 4f9e0d646d4b1bb6821b8b7670b1bd1b280925bd /libc-top-half | |
parent | Adding upstream version 0.0~git20230621.7018e24. (diff) | |
download | wasi-libc-26711fdc8922df06123f2431e7cd9a27cdc2388a.tar.xz wasi-libc-26711fdc8922df06123f2431e7cd9a27cdc2388a.zip |
Adding upstream version 0.0~git20230821.ec4566b.upstream/0.0_git20230821.ec4566b
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | libc-top-half/musl/src/thread/pthread_mutex_trylock.c | 2 |
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) { |