зеркало из https://github.com/github/ruby.git
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
This commit is contained in:
Родитель
d12bcfc186
Коммит
3385395796
|
@ -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>
|
||||
|
|
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче