diff options
author | Adam Langley <agl@google.com> | 2015-05-08 04:28:27 +0300 |
---|---|---|
committer | Adam Langley <agl@google.com> | 2015-05-08 21:34:55 +0300 |
commit | 65a7e9442c4605b0f1581a3ff3c5afc7a8d13c13 (patch) | |
tree | 61e9141e937576f2bfd98bdf91367518b0297751 /crypto/thread_pthread.c | |
parent | 4d2e7ce47bab29c7c872790edd1e262776176678 (diff) |
Support Trusty, an embedded platform.
Trusty doesn't have setjmp.h and nor does it have threads.
Change-Id: I005f7a009a13e6632513be9fab2bbe62294519a4
Reviewed-on: https://boringssl-review.googlesource.com/4660
Reviewed-by: Adam Langley <agl@google.com>
Diffstat (limited to 'crypto/thread_pthread.c')
-rw-r--r-- | crypto/thread_pthread.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/thread_pthread.c b/crypto/thread_pthread.c index 4188c4cc..59c4b8d1 100644 --- a/crypto/thread_pthread.c +++ b/crypto/thread_pthread.c @@ -14,7 +14,7 @@ #include "internal.h" -#if !defined(OPENSSL_WINDOWS) +#if !defined(OPENSSL_WINDOWS) && !defined(OPENSSL_NO_THREADS) #include <pthread.h> #include <stdlib.h> @@ -159,4 +159,4 @@ int CRYPTO_set_thread_local(thread_local_data_t index, void *value, return 1; } -#endif /* !OPENSSL_WINDOWS */ +#endif /* !OPENSSL_WINDOWS && !OPENSSL_NO_THREADS */ |