summaryrefslogtreecommitdiff
path: root/ext/socket/extconf.rb
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-05-11 08:32:26 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-05-11 08:32:26 +0000
commitb323d7d54c1f9d22799f636014a438f9da951f3f (patch)
tree331a1771e3bee4d097d3ea2bbf658d08243e70c5 /ext/socket/extconf.rb
parentfade664f916d001d1e2d53cbccd132f6b039fb7d (diff)
* ext/socket: New method, Socket.getifaddrs, implemented.
[ruby-core:54777] [Feature #8368] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40639 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/socket/extconf.rb')
-rw-r--r--ext/socket/extconf.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/ext/socket/extconf.rb b/ext/socket/extconf.rb
index 29e401a..f7470c0 100644
--- a/ext/socket/extconf.rb
+++ b/ext/socket/extconf.rb
@@ -306,6 +306,8 @@ end
netinet/tcp.h
netinet/udp.h
arpa/inet.h
+ netpacket/packet.h
+ net/ethernet.h
sys/un.h
ifaddrs.h
sys/ioctl.h
@@ -314,6 +316,7 @@ end
sys/param.h
sys/ucred.h
ucred.h
+ net/if_dl.h
arpa/nameser.h
resolv.h
].each {|h|
@@ -329,6 +332,8 @@ if have_type("struct sockaddr_un", headers) # POSIX
have_struct_member("struct sockaddr_un", "sun_len", headers) # 4.4BSD
end
+have_type("struct sockaddr_dl", headers) # AF_LINK address. 4.4BSD since Net2
+
have_type("struct sockaddr_storage", headers)
have_type("struct addrinfo", headers)
@@ -554,7 +559,8 @@ EOS
"unixserver.#{$OBJEXT}",
"option.#{$OBJEXT}",
"ancdata.#{$OBJEXT}",
- "raddrinfo.#{$OBJEXT}"
+ "raddrinfo.#{$OBJEXT}",
+ "ifaddr.#{$OBJEXT}"
]
if getaddr_info_ok == :wide