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

* ext/socket/extconf.rb: test struct sockaddr_storage directly.

* ext/socket/rubysocket.h: use HAVE_TYPE_STRUCT_SOCKADDR_STORAGE.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39250 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2013-02-15 03:36:05 +00:00
parent 0cc9cea3b4
commit a60e2e5820
3 changed files with 9 additions and 1 deletions

View file

@ -1,3 +1,9 @@
Fri Feb 15 12:34:58 2013 Tanaka Akira <akr@fsij.org>
* ext/socket/extconf.rb: test struct sockaddr_storage directly.
* ext/socket/rubysocket.h: use HAVE_TYPE_STRUCT_SOCKADDR_STORAGE.
Fri Feb 15 12:26:13 2013 Tanaka Akira <akr@fsij.org>
* ext/socket/getaddrinfo.c (GET_AI): don't cast 1st argument for

View file

@ -54,6 +54,8 @@ have_header("sys/uio.h")
have_header("ucred.h", headers)
have_type("struct sockaddr_storage", headers)
have_type("struct addrinfo", headers)
have_type("socklen_t", headers)

View file

@ -125,7 +125,7 @@ typedef int socklen_t;
# define IN6_IS_ADDR_UNIQUE_LOCAL(a) (((a)->s6_addr[0] == 0xfc) || ((a)->s6_addr[0] == 0xfd))
#endif
#ifndef HAVE_SOCKADDR_STORAGE
#ifndef HAVE_TYPE_STRUCT_SOCKADDR_STORAGE
/*
* RFC 2553: protocol-independent placeholder for socket addresses
*/