mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/socket/extconf.rb: The IPv6 stack of Cygwin is still incomplete.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2521 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
1320f85fb0
commit
9ba6e0738a
2 changed files with 8 additions and 3 deletions
|
@ -1,3 +1,7 @@
|
|||
Tue Jun 4 18:28:37 2002 WATANABE Hirofumi <eban@ruby-lang.org>
|
||||
|
||||
* ext/socket/extconf.rb: The IPv6 stack of Cygwin is still incomplete.
|
||||
|
||||
Tue Jun 4 00:45:50 2002 Nobuyoshi Nakada <nobu.nokada@softhome.net>
|
||||
|
||||
* ext/socket/addrinfo.h: typo.
|
||||
|
|
|
@ -62,7 +62,8 @@ else
|
|||
end
|
||||
|
||||
$ipv6 = false
|
||||
if enable_config("ipv6", true)
|
||||
default_ipv6 = /cygwin/ !~ RUBY_PLATFORM
|
||||
if enable_config("ipv6", default_ipv6)
|
||||
if try_link(<<EOF)
|
||||
#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
|
@ -160,7 +161,7 @@ end
|
|||
#ifdef _WIN32
|
||||
# include <windows.h>
|
||||
# include <winsock.h>
|
||||
#endif
|
||||
#else
|
||||
# include <sys/types.h>
|
||||
# include <netdb.h>
|
||||
# include <string.h>
|
||||
|
@ -219,7 +220,7 @@ EOF
|
|||
$CFLAGS="-DHAVE_SA_LEN "+$CFLAGS
|
||||
end
|
||||
|
||||
have_header("netinet/tcp.h") if not /cygwin/ === RUBY_PLATFORM # for cygwin 1.1.5
|
||||
have_header("netinet/tcp.h") if not /cygwin/ =~ RUBY_PLATFORM # for cygwin 1.1.5
|
||||
have_header("netinet/udp.h")
|
||||
|
||||
have_struct_member('struct msghdr', 'msg_control', header=['sys/types.h', 'sys/socket.h'])
|
||||
|
|
Loading…
Reference in a new issue