diff options
author | odaira <odaira@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-11-21 20:39:09 +0000 |
---|---|---|
committer | odaira <odaira@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-11-21 20:39:09 +0000 |
commit | 3385395796127878887bce015431b830fed82c4e (patch) | |
tree | 4362b9a6822cbbfc9023a885060b0ccae04584e9 /include/ruby | |
parent | d12bcfc186f2aea5e83f2f59716958ea12b5c937 (diff) | |
download | ruby-3385395796127878887bce015431b830fed82c4e.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
* 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
Diffstat (limited to 'include/ruby')
-rw-r--r-- | include/ruby/io.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/ruby/io.h b/include/ruby/io.h index 6cacd8a710..7caca17e3b 100644 --- a/include/ruby/io.h +++ b/include/ruby/io.h @@ -24,7 +24,6 @@ extern "C" { #endif #include <stdio.h> -#include <errno.h> #include "ruby/encoding.h" #if defined(HAVE_STDIO_EXT_H) @@ -32,6 +31,7 @@ extern "C" { #endif #include "ruby/config.h" +#include <errno.h> #if defined(HAVE_POLL) # ifdef _AIX # define reqevents events |