From 3385395796127878887bce015431b830fed82c4e Mon Sep 17 00:00:00 2001 From: odaira Date: Wed, 21 Nov 2018 20:39:09 +0000 Subject: [PATCH] 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 --- ext/openssl/ossl.h | 2 +- include/ruby/io.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/openssl/ossl.h b/ext/openssl/ossl.h index 5a15839cb4..39699bd5e6 100644 --- a/ext/openssl/ossl.h +++ b/ext/openssl/ossl.h @@ -13,8 +13,8 @@ #include RUBY_EXTCONF_H #include -#include #include +#include #include #include #include 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 -#include #include "ruby/encoding.h" #if defined(HAVE_STDIO_EXT_H) @@ -32,6 +31,7 @@ extern "C" { #endif #include "ruby/config.h" +#include #if defined(HAVE_POLL) # ifdef _AIX # define reqevents events