about summary refs log tree commit homepage
diff options
context:
space:
mode:
-rw-r--r--ext/kgio/extconf.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/kgio/extconf.rb b/ext/kgio/extconf.rb
index 86e660a..d7f1299 100644
--- a/ext/kgio/extconf.rb
+++ b/ext/kgio/extconf.rb
@@ -5,7 +5,7 @@ $CPPFLAGS << ' -DPOSIX_C_SOURCE=1'
 have_func("poll", "poll.h")
 have_func("getaddrinfo", %w(sys/types.h sys/socket.h netdb.h)) or
   abort "getaddrinfo required"
-have_func("getnameinfo", %w(sys/socket.h netdb.h)) or
+have_func("getnameinfo", %w(sys/types.h sys/socket.h netdb.h)) or
   abort "getnameinfo required"
 have_type("struct sockaddr_storage", %w(sys/types.h sys/socket.h)) or
   abort "struct sockaddr_storage required"