浏览代码

Only define NEW_THREAD_API when not building with LibreSSL.

Nick Mathewson 8 年之前
父节点
当前提交
967491f156
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      src/common/crypto.c

+ 3 - 2
src/common/crypto.c

@@ -72,11 +72,12 @@
 #define DISABLE_ENGINES
 #endif
 
-#if OPENSSL_VERSION_NUMBER >= OPENSSL_VER(1,1,0,0,4)
+#if OPENSSL_VERSION_NUMBER >= OPENSSL_VER(1,1,0,0,4) && \
+  !defined(LIBRESSL_VERSION_NUMBER)
 /* OpenSSL as of 1.1.0-pre4 has an "new" thread API, which doesn't require
  * seting up various callbacks.
  *
- * Note: Yes, using OPENSSL_VER is naughty, but theis was introduced in the
+ * Note: Yes, using OPENSSL_VER is naughty, but this was introduced in the
  * pre-release series.
  */
 #define NEW_THREAD_API