From 5acb4437c780b452619424944dc6697dce7db2ec Mon Sep 17 00:00:00 2001 From: usa Date: Mon, 5 Apr 2004 03:14:05 +0000 Subject: [PATCH] * ext/socket/socket.c (raise_socket_error): some platforms don't have EAI_SYSTEM. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6091 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 9 +++++++-- ext/socket/socket.c | 2 ++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 40c8376d82..a25e8dfb12 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Mon Apr 5 12:12:09 2004 NAKAMURA Usaku + + * ext/socket/socket.c (raise_socket_error): some platforms don't have + EAI_SYSTEM. + Mon Apr 5 08:18:23 2004 Dave Thomas * lib/rdoc/rdoc.rb: Remove leading ./ from file names so that cross @@ -5,8 +10,8 @@ Mon Apr 5 08:18:23 2004 Dave Thomas Sun Apr 4 14:01:20 2004 Dave Thomas - * lib/rdoc/options.rb (Options::parse): Allow multiple -x options to RDoc. - Fix bug where files weren't being excluded properly + * lib/rdoc/options.rb (Options::parse): Allow multiple -x options to + RDoc. Fix bug where files weren't being excluded properly Sat Apr 3 09:36:38 2004 why the lucky stiff diff --git a/ext/socket/socket.c b/ext/socket/socket.c index d9b2e8d606..72cf058a78 100644 --- a/ext/socket/socket.c +++ b/ext/socket/socket.c @@ -533,7 +533,9 @@ raise_socket_error(reason, error) char *reason; int error; { +#ifdef EAI_SYSTEM if (error == EAI_SYSTEM) rb_sys_fail(reason); +#endif rb_raise(rb_eSocket, "%s: %s", reason, gai_strerror(error)); }