summaryrefslogtreecommitdiff
path: root/libpthread/linuxthreads/internals.h
diff options
context:
space:
mode:
Diffstat (limited to 'libpthread/linuxthreads/internals.h')
-rw-r--r--libpthread/linuxthreads/internals.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libpthread/linuxthreads/internals.h b/libpthread/linuxthreads/internals.h
index 2c662582a..528acddc3 100644
--- a/libpthread/linuxthreads/internals.h
+++ b/libpthread/linuxthreads/internals.h
@@ -318,7 +318,11 @@ static inline int invalid_handle(pthread_handle h, pthread_t id)
THREAD_SELF implementation is used, this must be a power of two and
a multiple of PAGE_SIZE. */
#ifndef STACK_SIZE
+#ifdef __UCLIBC_HAS_MMU__
#define STACK_SIZE (2 * 1024 * 1024)
+#else
+#define STACK_SIZE (4 * PAGE_SIZE)
+#endif
#endif
/* The initial size of the thread stack. Must be a multiple of PAGE_SIZE. */