From 8556c2ccf64840a080a928312d8feed2834d4d29 Mon Sep 17 00:00:00 2001 From: Jeremy Evans Date: Mon, 14 Feb 2011 17:03:53 -0800 Subject: Fix build on OpenBSD 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 --- ext/kgio/extconf.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" -- cgit v1.2.3-24-ge0c7