diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-02-02 22:58:03 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-02-02 22:58:03 +0000 |
commit | b256c5fb8f58f85b40659b046bdef1549dc7b361 (patch) | |
tree | 3db23441824ea2e2b2ff53f986806451ff19b2c9 /ext/socket/extconf.rb | |
parent | e53c88a44f691176941b528e389db01c6884930d (diff) | |
download | ruby-b256c5fb8f58f85b40659b046bdef1549dc7b361.tar.gz |
* ext/socket/extconf.rb (in_pktinfo, in6_pktinfo),
ext/socket/ancdata.c: defined in w32api/ws2tcpip.h on cygwin but
cannot compile for some reason.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21985 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/socket/extconf.rb')
-rw-r--r-- | ext/socket/extconf.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ext/socket/extconf.rb b/ext/socket/extconf.rb index c82bacbe48..f4d92066b9 100644 --- a/ext/socket/extconf.rb +++ b/ext/socket/extconf.rb @@ -299,6 +299,14 @@ end have_header("sys/un.h") have_header("sys/uio.h") +have_type("struct in_pktinfo") {|src| + src.sub(%r'^/\*top\*/', '\1'"\n#if defined(IPPROTO_IP) && defined(IP_PKTINFO)") << + "#else\n" << "#error\n" << ">>>>>> no in_pktinfo <<<<<<\n" << "#endif\n" +} +have_type("struct in6_pktinfo") {|src| + src.sub(%r'^/\*top\*/', '\1'"\n#if defined(IPPROTO_IPV6) && defined(IPV6_PKTINFO)") << + "#else\n" << "#error\n" << ">>>>>> no in6_pktinfo <<<<<<\n" << "#endif\n" +} $distcleanfiles << "constants.h" << "constdefs.*" |