Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/boringssl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Langley <agl@google.com>2015-05-08 04:28:27 +0300
committerAdam Langley <agl@google.com>2015-05-08 21:34:55 +0300
commit65a7e9442c4605b0f1581a3ff3c5afc7a8d13c13 (patch)
tree61e9141e937576f2bfd98bdf91367518b0297751 /crypto/thread_test.c
parent4d2e7ce47bab29c7c872790edd1e262776176678 (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_test.c')
-rw-r--r--crypto/thread_test.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/crypto/thread_test.c b/crypto/thread_test.c
index 04d71c5f..cecda883 100644
--- a/crypto/thread_test.c
+++ b/crypto/thread_test.c
@@ -17,6 +17,8 @@
#include <stdio.h>
+#if !defined(OPENSSL_NO_THREADS)
+
#if defined(OPENSSL_WINDOWS)
#pragma warning(push, 3)
@@ -189,3 +191,12 @@ int main(int argc, char **argv) {
printf("PASS\n");
return 0;
}
+
+#else /* OPENSSL_NO_THREADS */
+
+int main(int argc, char **argv) {
+ printf("PASS\n");
+ return 0;
+}
+
+#endif