summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-rw-r--r--ext/socket/extconf.rb11
1 files changed, 6 insertions, 5 deletions
diff --git a/ext/socket/extconf.rb b/ext/socket/extconf.rb
index fb77a98d1b..dbce2bab47 100644
--- a/ext/socket/extconf.rb
+++ b/ext/socket/extconf.rb
@@ -301,13 +301,14 @@ if getaddr_info_ok == :wide or
$objs += ["getaddrinfo.#{$OBJEXT}"]
$objs += ["getnameinfo.#{$OBJEXT}"]
$defs << "-DGETADDRINFO_EMU"
- have_func("inet_ntop") or have_func("inet_ntoa")
- have_func("inet_pton") or have_func("inet_aton")
- have_func("getservbyport")
- have_header("arpa/nameser.h")
- have_header("resolv.h")
end
+have_func("inet_ntop") or have_func("inet_ntoa")
+have_func("inet_pton") or have_func("inet_aton")
+have_func("getservbyport")
+have_header("arpa/nameser.h")
+have_header("resolv.h")
+
have_header("ifaddrs.h")
have_func("getifaddrs")
have_header("sys/ioctl.h")