summaryrefslogtreecommitdiffstats
path: root/9/platforms/android-19/arch-arm64/usr/include/pthread.h
diff options
context:
space:
mode:
authorAndrew Hsieh <andrewhsieh@google.com>2014-05-16 16:21:25 +0800
committerAndrew Hsieh <andrewhsieh@google.com>2014-05-16 19:05:40 +0800
commit14c2fbd9d075cf4214e83beb231f376bbc7604e1 (patch)
treea0258b8492eff6cf1a5a097a837cb5ba42fbd471 /9/platforms/android-19/arch-arm64/usr/include/pthread.h
parent712601cec99eb0715627274bbcfec4e25b592136 (diff)
downloadprebuilts_ndk-14c2fbd9d075cf4214e83beb231f376bbc7604e1.zip
prebuilts_ndk-14c2fbd9d075cf4214e83beb231f376bbc7604e1.tar.gz
prebuilts_ndk-14c2fbd9d075cf4214e83beb231f376bbc7604e1.tar.bz2
Refresh 64-bit headers/libs (WW20)
To bionic: 5265ad6273cd7c61d096ebe0e29e493915e7c63e (5/16) Change-Id: I28dd1476ae522367b5ab7e5c1dc5864572404850
Diffstat (limited to '9/platforms/android-19/arch-arm64/usr/include/pthread.h')
-rw-r--r--9/platforms/android-19/arch-arm64/usr/include/pthread.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/9/platforms/android-19/arch-arm64/usr/include/pthread.h b/9/platforms/android-19/arch-arm64/usr/include/pthread.h
index 7b8de81..49f943a 100644
--- a/9/platforms/android-19/arch-arm64/usr/include/pthread.h
+++ b/9/platforms/android-19/arch-arm64/usr/include/pthread.h
@@ -35,7 +35,7 @@
#include <limits.h>
#include <sys/types.h>
-#ifdef __LP64__
+#if defined(__LP64__)
#define __RESERVED_INITIALIZER , {0}
#else
#define __RESERVED_INITIALIZER
@@ -112,7 +112,11 @@ typedef volatile int pthread_once_t;
#define PTHREAD_ONCE_INIT 0
+#if defined(__LP64__)
+#define PTHREAD_STACK_MIN (4 * PAGE_SIZE)
+#else
#define PTHREAD_STACK_MIN (2 * PAGE_SIZE)
+#endif
#define PTHREAD_CREATE_DETACHED 0x00000001
#define PTHREAD_CREATE_JOINABLE 0x00000000