summaryrefslogtreecommitdiff
path: root/ext/socket/extconf.rb
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-12-25 16:41:13 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-12-25 16:41:13 +0000
commit7c9fbd226b1f998eef845bea4e41d23e2c3aa5c2 (patch)
tree4bdad5f37b69626f70f5cd161f7eddd5fcb94dfa /ext/socket/extconf.rb
parent01da08a29c3732abff521bf43ba43050b07cc0ce (diff)
* ext/socket/extconf.rb: check the existence of if_indextoname().
* ext/socket/option.c: yesterday's akr's commits destroyed the build of some unrelated platforms (such as Windows). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30372 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/socket/extconf.rb')
-rw-r--r--ext/socket/extconf.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/socket/extconf.rb b/ext/socket/extconf.rb
index 62f3dd9..fb77a98 100644
--- a/ext/socket/extconf.rb
+++ b/ext/socket/extconf.rb
@@ -340,6 +340,8 @@ have_func("getpeereid")
have_header("ucred.h", headers)
have_func("getpeerucred")
+have_func("if_indextoname")
+
have_type("struct ip_mreq", headers) # 4.4BSD
have_type("struct ip_mreqn", headers) # Linux 2.4
have_type("struct ipv6_mreq", headers) # RFC 3493