summaryrefslogtreecommitdiff
path: root/ext/socket/getaddrinfo.c
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-08-07 04:14:25 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-08-07 04:14:25 +0000
commitc73a2030400df46fb60c2cc32f5e031311d2ea82 (patch)
tree6f21500ef1e2651284649bbd881b48328f36cfed /ext/socket/getaddrinfo.c
parent38eeffcec2d493657dda03d8bde55176d569706a (diff)
* ext/socket/getaddrinfo.c (gai_strerror): ignore only on Haiku.
a patch from <znz at mbf.nifty.com>, [ruby-dev:35796]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18408 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/socket/getaddrinfo.c')
-rw-r--r--ext/socket/getaddrinfo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/socket/getaddrinfo.c b/ext/socket/getaddrinfo.c
index 0ff2d5f..da9ba69 100644
--- a/ext/socket/getaddrinfo.c
+++ b/ext/socket/getaddrinfo.c
@@ -194,7 +194,7 @@ if (pai->ai_flags & AI_CANONNAME) {\
#define ERR(err) { error = (err); goto bad; }
-/*
+#ifndef __HAIKU__
#if defined __UCLIBC__
const
#endif
@@ -205,7 +205,7 @@ gai_strerror(int ecode)
ecode = EAI_MAX;
return (char *)ai_errlist[ecode];
}
-*/
+#endif
void
freeaddrinfo(struct addrinfo *ai)