summaryrefslogtreecommitdiffstats
path: root/libc-top-half/musl/src/internal
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 16:23:17 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 16:23:17 +0000
commitb7e2ef5344c7d7657ae99cedf4a009885c54dfca (patch)
tree85cce2d5678f06eeae97ed4a9c7244441cc1a644 /libc-top-half/musl/src/internal
parentAdding upstream version 0.0~git20221206.8b7148f. (diff)
downloadwasi-libc-b7e2ef5344c7d7657ae99cedf4a009885c54dfca.tar.xz
wasi-libc-b7e2ef5344c7d7657ae99cedf4a009885c54dfca.zip
Adding upstream version 0.0~git20230113.4362b18.upstream/0.0_git20230113.4362b18
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'libc-top-half/musl/src/internal')
-rw-r--r--libc-top-half/musl/src/internal/pthread_impl.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libc-top-half/musl/src/internal/pthread_impl.h b/libc-top-half/musl/src/internal/pthread_impl.h
index a6d188b..1e7b974 100644
--- a/libc-top-half/musl/src/internal/pthread_impl.h
+++ b/libc-top-half/musl/src/internal/pthread_impl.h
@@ -216,7 +216,12 @@ extern hidden unsigned __default_stacksize;
extern hidden unsigned __default_guardsize;
#define DEFAULT_STACK_SIZE 131072
+#ifdef __wasilibc_unmodified_upstream
#define DEFAULT_GUARD_SIZE 8192
+#else
+/* guard doesn't make much sense without mprotect. */
+#define DEFAULT_GUARD_SIZE 0
+#endif
#define DEFAULT_STACK_MAX (8<<20)
#define DEFAULT_GUARD_MAX (1<<20)