[ruby/openssl] move ractor safe macro to ossl.h

in order to import or define the RUBY_TYPED_FROZEN_SHAREABLE macro.

https://github.com/ruby/openssl/commit/b8504c2215
This commit is contained in:
HoneyryderChuck 2024-10-29 16:48:57 +00:00 committed by git
parent 3b9896acfc
commit e5860e5654
2 changed files with 6 additions and 4 deletions

View File

@ -17,6 +17,12 @@
#include <errno.h>
#include <ruby/io.h>
#include <ruby/thread.h>
#ifdef HAVE_RUBY_RACTOR_H
#include <ruby/ractor.h>
#else
#define RUBY_TYPED_FROZEN_SHAREABLE 0
#endif
#include <openssl/opensslv.h>
#include <openssl/err.h>

View File

@ -10,10 +10,6 @@
/* modified by Michal Rokos <m.rokos@sh.cvut.cz> */
#include "ossl.h"
#ifdef HAVE_RB_EXT_RACTOR_SAFE
#include <ruby/ractor.h>
#endif
#define NewBN(klass) \
TypedData_Wrap_Struct((klass), &ossl_bn_type, 0)
#define SetBN(obj, bn) do { \