mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/socket/extconf.rb: fix struct in_pktinfo and struct in6_pktinfo
detection. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22022 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c07b4ef145
commit
20ac101dae
2 changed files with 9 additions and 4 deletions
|
@ -1,3 +1,8 @@
|
|||
Wed Feb 4 01:28:46 2009 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* ext/socket/extconf.rb: fix struct in_pktinfo and struct in6_pktinfo
|
||||
detection.
|
||||
|
||||
Wed Feb 4 00:32:59 2009 Yusuke Endoh <mame@tsg.ne.jp>
|
||||
|
||||
* test/etc/test_etc.rb(test_getpwnam, test_getgrgid, test_getgrnam):
|
||||
|
|
|
@ -299,13 +299,13 @@ end
|
|||
|
||||
have_header("sys/un.h")
|
||||
have_header("sys/uio.h")
|
||||
have_type("struct in_pktinfo") {|src|
|
||||
have_type("struct in_pktinfo", headers) {|src|
|
||||
src.sub(%r'^/\*top\*/', '\1'"\n#if defined(IPPROTO_IP) && defined(IP_PKTINFO)") <<
|
||||
"#else\n" << "#error\n" << ">>>>>> no in_pktinfo <<<<<<\n" << "#endif\n"
|
||||
"#else\n" << "#error no in_pktinfo\n" << "#endif\n"
|
||||
}
|
||||
have_type("struct in6_pktinfo") {|src|
|
||||
have_type("struct in6_pktinfo", headers) {|src|
|
||||
src.sub(%r'^/\*top\*/', '\1'"\n#if defined(IPPROTO_IPV6) && defined(IPV6_PKTINFO)") <<
|
||||
"#else\n" << "#error\n" << ">>>>>> no in6_pktinfo <<<<<<\n" << "#endif\n"
|
||||
"#else\n" << "#error no in6_pktinfo\n" << "#endif\n"
|
||||
}
|
||||
|
||||
$distcleanfiles << "constants.h" << "constdefs.*"
|
||||
|
|
Loading…
Reference in a new issue