aboutsummaryrefslogtreecommitdiffstats
path: root/erts/lib_src
diff options
context:
space:
mode:
authorRickard Green <[email protected]>2017-01-25 15:05:50 +0100
committerRickard Green <[email protected]>2017-01-25 15:05:50 +0100
commitcd4a95b0abb45f07eef8a77991c2be8f5dea575e (patch)
tree0f0626fc7963a25e45f1b9d113ffaea09d318248 /erts/lib_src
parentdd2e2b74fe6e97f13ab00f98a049604cf61fb43d (diff)
parent23cfe2138c71861684f55a298b55203b4649a645 (diff)
downloadotp-cd4a95b0abb45f07eef8a77991c2be8f5dea575e.tar.gz
otp-cd4a95b0abb45f07eef8a77991c2be8f5dea575e.tar.bz2
otp-cd4a95b0abb45f07eef8a77991c2be8f5dea575e.zip
Merge branch 'rickard/android-missing-page-size-workaround' into maint
OTP-14165 * rickard/android-missing-page-size-workaround: Workaround for buggy android implementation of PTHREAD_STACK_MIN
Diffstat (limited to 'erts/lib_src')
-rw-r--r--erts/lib_src/common/ethr_aux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/lib_src/common/ethr_aux.c b/erts/lib_src/common/ethr_aux.c
index 420efd725f..3501fe335a 100644
--- a/erts/lib_src/common/ethr_aux.c
+++ b/erts/lib_src/common/ethr_aux.c
@@ -220,7 +220,7 @@ ethr_init_common__(ethr_init_data *id)
ethr_min_stack_size__ += ethr_pagesize__;
#endif
/* The system may think that we need more stack */
-#if defined(PTHREAD_STACK_MIN)
+#if defined(ETHR_HAVE_USABLE_PTHREAD_STACK_MIN)
if (ethr_min_stack_size__ < PTHREAD_STACK_MIN)
ethr_min_stack_size__ = PTHREAD_STACK_MIN;
#elif defined(_SC_THREAD_STACK_MIN)