diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | ext/openssl/ossl_x509attr.c | 4 |
2 files changed, 8 insertions, 2 deletions
@@ -1,3 +1,9 @@ +Fri Jun 21 16:38:00 2013 Charlie Somerville <charliesome@ruby-lang.org> + + * ext/openssl/ossl_x509attr.c: change OSSL_X509ATTR_IS_SINGLE and + OSSL_X509ATTR_SET_SINGLE macros to use ->value.set rather than + ->set to fix compile failure + Fri Jun 21 15:26:45 2013 Koichi Sasada <ko1@atdot.net> * gc.c (gc_sweep): profile sweep time correctly when LAZY_SWEEP is diff --git a/ext/openssl/ossl_x509attr.c b/ext/openssl/ossl_x509attr.c index 1f36ca8b12..d50f88c969 100644 --- a/ext/openssl/ossl_x509attr.c +++ b/ext/openssl/ossl_x509attr.c @@ -165,8 +165,8 @@ ossl_x509attr_get_oid(VALUE self) # define OSSL_X509ATTR_IS_SINGLE(attr) ((attr)->single) # define OSSL_X509ATTR_SET_SINGLE(attr) ((attr)->single = 1) #else -# define OSSL_X509ATTR_IS_SINGLE(attr) (!(attr)->set) -# define OSSL_X509ATTR_SET_SINGLE(attr) ((attr)->set = 0) +# define OSSL_X509ATTR_IS_SINGLE(attr) (!(attr)->value.set) +# define OSSL_X509ATTR_SET_SINGLE(attr) ((attr)->value.set = 0) #endif /* |