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

* ext/socket/{options,raddrinfo}.c: use INET6 instead of AF_INET6 for

VC++6.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21946 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
usa 2009-02-02 03:48:31 +00:00
parent a98cbcbf0b
commit bf23d53b94
3 changed files with 9 additions and 2 deletions

View file

@ -1,3 +1,8 @@
Mon Feb 2 12:47:47 2009 NAKAMURA Usaku <usa@ruby-lang.org>
* ext/socket/{options,raddrinfo}.c: use INET6 instead of AF_INET6 for
VC++6.
Mon Feb 2 12:41:52 2009 Shugo Maeda <shugo@ruby-lang.org>
* complex.c (f_signbit): regard NaN as a positive value.

View file

@ -21,8 +21,10 @@ optname_to_sym(int level, int optname)
return constant_to_sym(optname, intern_so_optname);
case IPPROTO_IP:
return constant_to_sym(optname, intern_ip_optname);
#ifdef IPV6
case IPPROTO_IPV6:
return constant_to_sym(optname, intern_ipv6_optname);
#endif
case IPPROTO_TCP:
return constant_to_sym(optname, intern_tcp_optname);
case IPPROTO_UDP:

View file

@ -1677,7 +1677,7 @@ addrinfo_ipv4_multicast_p(VALUE self)
return Qfalse;
}
#ifdef AF_INET6
#ifdef INET6
static struct in6_addr *
extract_in6_addr(VALUE self)
@ -2094,7 +2094,7 @@ Init_addrinfo(void)
rb_define_method(rb_cAddrInfo, "ipv4_loopback?", addrinfo_ipv4_loopback_p, 0);
rb_define_method(rb_cAddrInfo, "ipv4_multicast?", addrinfo_ipv4_multicast_p, 0);
#ifdef AF_INET6
#ifdef INET6
rb_define_method(rb_cAddrInfo, "ipv6_unspecified?", addrinfo_ipv6_unspecified_p, 0);
rb_define_method(rb_cAddrInfo, "ipv6_loopback?", addrinfo_ipv6_loopback_p, 0);
rb_define_method(rb_cAddrInfo, "ipv6_multicast?", addrinfo_ipv6_multicast_p, 0);