[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:
parent
3b9896acfc
commit
e5860e5654
@ -17,6 +17,12 @@
|
|||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <ruby/io.h>
|
#include <ruby/io.h>
|
||||||
#include <ruby/thread.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/opensslv.h>
|
||||||
|
|
||||||
#include <openssl/err.h>
|
#include <openssl/err.h>
|
||||||
|
@ -10,10 +10,6 @@
|
|||||||
/* modified by Michal Rokos <m.rokos@sh.cvut.cz> */
|
/* modified by Michal Rokos <m.rokos@sh.cvut.cz> */
|
||||||
#include "ossl.h"
|
#include "ossl.h"
|
||||||
|
|
||||||
#ifdef HAVE_RB_EXT_RACTOR_SAFE
|
|
||||||
#include <ruby/ractor.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define NewBN(klass) \
|
#define NewBN(klass) \
|
||||||
TypedData_Wrap_Struct((klass), &ossl_bn_type, 0)
|
TypedData_Wrap_Struct((klass), &ossl_bn_type, 0)
|
||||||
#define SetBN(obj, bn) do { \
|
#define SetBN(obj, bn) do { \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user