diff options
Diffstat (limited to 'librabbitmq/amqp_openssl_bio.c')
-rw-r--r-- | librabbitmq/amqp_openssl_bio.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/librabbitmq/amqp_openssl_bio.c b/librabbitmq/amqp_openssl_bio.c index 5279620..df0ce2d 100644 --- a/librabbitmq/amqp_openssl_bio.c +++ b/librabbitmq/amqp_openssl_bio.c @@ -42,9 +42,7 @@ #ifdef AMQP_USE_AMQP_BIO -#ifdef ENABLE_THREAD_SAFETY static pthread_once_t bio_init_once = PTHREAD_ONCE_INIT; -#endif static int bio_initialized = 0; static BIO_METHOD amqp_bio_method; @@ -150,11 +148,7 @@ static void amqp_openssl_bio_init(void) { BIO_METHOD *amqp_openssl_bio(void) { #ifdef AMQP_USE_AMQP_BIO if (!bio_initialized) { -#ifdef ENABLE_THREAD_SAFETY pthread_once(&bio_init_once, amqp_openssl_bio_init); -#else - amqp_openssl_bio_init(); -#endif /* ifndef ENABLE_THREAD_SAFETY */ } return &amqp_bio_method; |