summaryrefslogtreecommitdiff
path: root/ext/socket/extconf.rb
diff options
context:
space:
mode:
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