From 4502716fc43ef151502a4f35645091d06b1c103c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mois=C3=A9s=20Guimar=C3=A3es?= Date: Wed, 19 Jun 2013 17:04:43 -0300 Subject: [PATCH] Merge branch 'master' of https://github.com/cyassl/cyassl --- configure.ac | 2 +- cyassl/test.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index 221c5aa63..ffc41eb6a 100644 --- a/configure.ac +++ b/configure.ac @@ -599,7 +599,7 @@ AC_ARG_ENABLE([stacksize], if test "$ENABLED_STACKSIZE" = "yes" then AC_CHECK_FUNC([posix_memalign], [], [AC_MSG_ERROR(stacksize needs posix_memalign)]) - AC_CHECK_FUNC([pthread_attr_setstack], [], [AC_MSG_ERROR(stacksize needs pthread_attr_setstack)]) + AC_CHECK_FUNC([pthread_attr_setstack], [], AC_CHECK_LIB([pthread],[pthread_attr_setstack])) AM_CFLAGS="$AM_CFLAGS -DHAVE_STACK_SIZE -DCYASSL_LOW_MEMORY" fi diff --git a/cyassl/test.h b/cyassl/test.h index 86033d846..4cbd14cf0 100644 --- a/cyassl/test.h +++ b/cyassl/test.h @@ -1217,7 +1217,7 @@ static INLINE void StackSizeCheck(func_args* args, thread_func tf) if (ret != 0) err_sys("posix_memalign failed\n"); - memset(myStack, 0xee, stackSize); + memset(myStack, 0x01, stackSize); ret = pthread_attr_init(&myAttr); if (ret != 0) @@ -1238,7 +1238,7 @@ static INLINE void StackSizeCheck(func_args* args, thread_func tf) err_sys("pthread_join failed"); for (i = 0; i < stackSize; i++) { - if (myStack[i] != 0xee) { + if (myStack[i] != 0x01) { break; } }