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:
authorDavid Benjamin <davidben@chromium.org>2015-05-07 17:42:29 +0300
committerAdam Langley <agl@google.com>2015-05-07 20:25:09 +0300
commitae5fdd96484c7eaee858206c1f79722748b8dcc8 (patch)
tree03c5bf30ba30e180334ec97cfb7ea1c3e4202b4d /crypto/internal.h
parenta24265cfb16c4528759e4148d57a735f39fb7975 (diff)
Revert "Work around missing PTHREAD_RWLOCK_INITIALIZER in NaCl newlib."
This reverts commit 68de407b5fc746c0fa82706dd897288d01c32930. The NaCl fix has rolled into Chromium. Change-Id: I9fd6a6ae727c95fa89b8ce27e301f2a748d0acc9 Reviewed-on: https://boringssl-review.googlesource.com/4651 Reviewed-by: Adam Langley <agl@google.com>
Diffstat (limited to 'crypto/internal.h')
-rw-r--r--crypto/internal.h12
1 files changed, 0 insertions, 12 deletions
diff --git a/crypto/internal.h b/crypto/internal.h
index 40fcf90a..9cb8573c 100644
--- a/crypto/internal.h
+++ b/crypto/internal.h
@@ -369,19 +369,7 @@ OPENSSL_EXPORT void CRYPTO_once(CRYPTO_once_t *once, void (*init)(void));
struct CRYPTO_STATIC_MUTEX {
pthread_rwlock_t lock;
};
-
-#if !defined(PTHREAD_RWLOCK_INITIALIZER) && defined(__native_client__) && \
- defined(_NEWLIB_VERSION)
-/* newlib under NaCl is missing PTHREAD_RWLOCK_INITIALIZER. See
- * https://code.google.com/p/nativeclient/issues/detail?id=4160. Remove this
- * when that bug is fixed. */
-#define CRYPTO_STATIC_MUTEX_INIT \
- { { PTHREAD_MUTEX_INITIALIZER, 0, 0, NACL_PTHREAD_ILLEGAL_THREAD_ID, \
- PTHREAD_COND_INITIALIZER, PTHREAD_COND_INITIALIZER } }
-#else
#define CRYPTO_STATIC_MUTEX_INIT { PTHREAD_RWLOCK_INITIALIZER }
-#endif
-
#else
struct CRYPTO_STATIC_MUTEX {
CRYPTO_once_t once;