X-Git-Url: https://git.saurik.com/apple/libc.git/blobdiff_plain/1f2f436a38f7ae2d39a943ad2898d8fed4ed2e58..a28bf75d63c6a64e4c3b417c6052e45f42c6cedd:/pthreads/pthread_internals.h diff --git a/pthreads/pthread_internals.h b/pthreads/pthread_internals.h index a74a94c..3a8b772 100644 --- a/pthreads/pthread_internals.h +++ b/pthreads/pthread_internals.h @@ -63,6 +63,7 @@ typedef struct _pthread_attr_t pthread_attr_t; #include #include #include +#include #include #include #include @@ -88,9 +89,15 @@ extern size_t pthreadsize; /* * Compiled-in limits */ +#if TARGET_OS_EMBEDDED +#define _EXTERNAL_POSIX_THREAD_KEYS_MAX 256 +#define _INTERNAL_POSIX_THREAD_KEYS_MAX 256 +#define _INTERNAL_POSIX_THREAD_KEYS_END 512 +#else #define _EXTERNAL_POSIX_THREAD_KEYS_MAX 512 #define _INTERNAL_POSIX_THREAD_KEYS_MAX 256 #define _INTERNAL_POSIX_THREAD_KEYS_END 768 +#endif /* * Threads @@ -580,7 +587,7 @@ extern struct __pthread_workqueue_pool __pthread_workqueue_pool_head; /* #include "pthread_spis.h" -#if defined(__i386__) || defined(__ppc64__) || defined(__x86_64__) || (defined(__arm__) && (defined(_ARM_ARCH_7) || !defined(_ARM_ARCH_6) || !defined(__thumb__))) +#if defined(__i386__) || defined(__ppc64__) || defined(__x86_64__) || (defined(__arm__) && (defined(_ARM_ARCH_7) || !defined(_ARM_ARCH_6) || !defined(__thumb__))) /* * Inside libSystem, we can use r13 or %gs directly to get access to the * thread-specific data area. The current thread is in the first slot.