diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-04-05 03:14:05 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-04-05 03:14:05 +0000 |
commit | 5acb4437c780b452619424944dc6697dce7db2ec (patch) | |
tree | 678a26aae14ada7c54246543a32fdc6dd6297ac8 /ext | |
parent | 2ca96a332b6f3bebdbc5654e6321a4da65cca414 (diff) | |
download | ruby-5acb4437c780b452619424944dc6697dce7db2ec.tar.gz |
* 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
Diffstat (limited to 'ext')
-rw-r--r-- | ext/socket/socket.c | 2 |
1 files changed, 2 insertions, 0 deletions
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)); } |