summaryrefslogtreecommitdiff
path: root/include/ruby/thread.h
diff options
context:
space:
mode:
authorYuta Saito <kateinoigakukun@gmail.com>2022-10-31 11:07:57 +0000
committerKazuki Yamaguchi <k@rhe.jp>2022-12-23 09:39:15 +0900
commit782777a803f990f688579db50c938d1a80a5f24a (patch)
tree914c3fbb89a6bd83ff749d5ef53031f62ee56a94 /include/ruby/thread.h
parente6ca6443299b48f906662b438e5267d876d21a1e (diff)
[ruby/openssl] Undefine `OpenSSL::SSL` for no socket platforms
This fixes a linkage error about `ossl_ssl_type` on platforms which do not have socket, like WASI. Even before this patch, some items are disabled under `OPENSSL_NO_SOCK` since https://github.com/ruby/ruby/commit/ee22fad45d394818690c4a7586d7bb576ba67c56 However, due to some new use of OpenSSL::SSL::Socket over the past few years, the build under `OPENSSL_NO_SOCK` had been broken. This patch guards whole `OpenSSL::SSL` items by `OPENSSL_NO_SOCK`. [ky: adjusted to apply on top of my previous commit that removed the OpenSSL::ExtConfig, and added a guard to lib/openssl/ssl.rb.] https://github.com/ruby/openssl/commit/b0cfac6a96
Diffstat (limited to 'include/ruby/thread.h')
0 files changed, 0 insertions, 0 deletions