From 8b92a1c4a9438b6864108585105d65808d0bd514 Mon Sep 17 00:00:00 2001 From: Murat Dogan Date: Sun, 17 Apr 2022 18:16:35 +0300 Subject: [PATCH] Fixes #65 --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0baefa3..7f9b40a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,6 +2,12 @@ cmake_minimum_required(VERSION 3.15) cmake_policy(SET CMP0091 NEW) project(node_datachannel VERSION 0.2.4) +# Workaround for https://github.com/murat-dogan/node-datachannel/issues/65 +if( NODE_RUNTIMEVERSION VERSION_GREATER_EQUAL "17.0.0") + add_compile_definitions(OPENSSL_API_COMPAT=0x10100001L) + add_compile_definitions(OPENSSL_CONFIGURED_API=0x30000000L) +endif() + include_directories(${CMAKE_JS_INC}) set(CMAKE_BUILD_TYPE Release)