1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

BeOS patches

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1r@218 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 1998-05-18 09:12:27 +00:00
parent 41c6972dd5
commit f9c63857f8
10 changed files with 52 additions and 11 deletions

View file

@ -1167,7 +1167,7 @@ static VALUE
sock_s_socketpair(class, domain, type, protocol)
VALUE class, domain, type, protocol;
{
#if !defined(NT)
#if !defined(NT) && !defined(__BEOS__)
int fd;
int d, t, sp[2];
@ -1368,9 +1368,9 @@ sock_s_gethostbyaddr(argc, argv)
struct sockaddr_in *addr;
struct hostent *h;
rb_scan_args(argc, argv, "11", &addr, &type);
rb_scan_args(argc, argv, "11", &addr, &vtype);
Check_Type(addr, T_STRING);
if (!NIL_P(type)) {
if (!NIL_P(vtype)) {
type = NUM2INT(vtype);
}
else {