summaryrefslogtreecommitdiff
path: root/src/crypto/refcount_test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/crypto/refcount_test.cc')
-rw-r--r--src/crypto/refcount_test.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/crypto/refcount_test.cc b/src/crypto/refcount_test.cc
index 6ce0746d..700863f6 100644
--- a/src/crypto/refcount_test.cc
+++ b/src/crypto/refcount_test.cc
@@ -16,7 +16,7 @@
#include <gtest/gtest.h>
-#if !defined(OPENSSL_NO_THREADS)
+#if defined(OPENSSL_THREADS)
#include <thread>
#endif
@@ -43,7 +43,7 @@ TEST(RefCountTest, Basic) {
EXPECT_EQ(1u, count);
}
-#if !defined(OPENSSL_NO_THREADS)
+#if defined(OPENSSL_THREADS)
// This test is primarily intended to run under ThreadSanitizer.
TEST(RefCountTest, Threads) {
CRYPTO_refcount_t count = 0;