diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-04-08 05:25:10 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-04-08 05:25:10 +0000 |
commit | 3b86c8c4aeb9a93a34129ad61cd3df29ce634086 (patch) | |
tree | ffdc4c36d1b6a185c72bf57fe5f19572f7d23036 | |
parent | 23d104a1611f4dd442b24980d37e8c344a529c56 (diff) | |
download | ruby-3b86c8c4aeb9a93a34129ad61cd3df29ce634086.tar.gz |
* include/ruby/win32.h: include errno.h before defining errnos.
see [ruby-core:29314]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27258 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | include/ruby/win32.h | 2 |
2 files changed, 7 insertions, 0 deletions
@@ -1,3 +1,8 @@ +Thu Apr 8 14:23:51 2010 NAKAMURA Usaku <usa@ruby-lang.org> + + * include/ruby/win32.h: include errno.h before defining errnos. + see [ruby-core:29314] + Thu Apr 8 11:45:14 2010 Nobuyoshi Nakada <nobu@ruby-lang.org> * lib/yaml.rb: use Psych if only it is loaded already. diff --git a/include/ruby/win32.h b/include/ruby/win32.h index ebbb32dcc3..cd7353580f 100644 --- a/include/ruby/win32.h +++ b/include/ruby/win32.h @@ -401,6 +401,8 @@ extern char *rb_w32_strerror(int); /* #undef va_end */ /* winsock error map */ +#include <errno.h> + #ifndef EWOULDBLOCK # define EWOULDBLOCK WSAEWOULDBLOCK #endif |