diff options
author | odaira <odaira@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-11-21 20:39:09 +0000 |
---|---|---|
committer | Kazuki Yamaguchi <k@rhe.jp> | 2021-09-26 19:17:07 +0900 |
commit | c4219454d0a0c7dfbd7f63aa5715104d3f488b02 (patch) | |
tree | 67317077665574102c040a3d782c352df1a87c16 | |
parent | 52abe5dbef3e85b5370273dee2714918badfb479 (diff) | |
download | ruby-openssl-c4219454d0a0c7dfbd7f63aa5715104d3f488b02.tar.gz |
errno.h must be included after config.h because config.h might define
_REENTRANT, _THREAD_SAFE, etc., which affect how errno is defined
on some architectures
[ This is a backport to the 2.1 branch. ]
* ext/openssl/ossl.h: include errno.h after ruby.h
* include/ruby/io.h: include errno.h after ruby/config.h
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65906 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
(cherry picked from commit ruby/ruby@3385395796127878887bce015431b830fed82c4e)
-rw-r--r-- | ext/openssl/ossl.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/openssl/ossl.h b/ext/openssl/ossl.h index 5a15839c..39699bd5 100644 --- a/ext/openssl/ossl.h +++ b/ext/openssl/ossl.h @@ -13,8 +13,8 @@ #include RUBY_EXTCONF_H #include <assert.h> -#include <errno.h> #include <ruby.h> +#include <errno.h> #include <ruby/io.h> #include <ruby/thread.h> #include <openssl/opensslv.h> |