about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorJeremy Evans <code@jeremyevans.net>2011-02-14 17:03:53 -0800
committerEric Wong <normalperson@yhbt.net>2011-02-15 08:55:14 -0800
commit8556c2ccf64840a080a928312d8feed2834d4d29 (patch)
tree5096ee9f2a00a20d36e5a1f90c684f558eabf38e
parent6d19ebb3a917b566830f8d33e95b1eea2e99658d (diff)
downloadkgio-8556c2ccf64840a080a928312d8feed2834d4d29.tar.gz
OpenBSD's getnameinfo(3) requires the sys/types.h header file, and
including it should not cause a problem for other OSes.

Acked-by: Eric Wong <normalperson@yhbt.net>
-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"