From 1a7eed4c69abb7bafd3e3dc2acd13e243995e98e Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 13 Jun 2011 14:26:10 -0700 Subject: extconf: -lnsl and -lsocket checks for OpenSolaris Reported via private email. (cherry picked from commit d224563823accca63fd871260e3f0dad6758c8d4) --- ext/kgio/extconf.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ext/kgio/extconf.rb b/ext/kgio/extconf.rb index f44b8c8..31ef73c 100644 --- a/ext/kgio/extconf.rb +++ b/ext/kgio/extconf.rb @@ -7,6 +7,12 @@ unless have_macro('CLOCK_MONOTONIC', 'time.h') end have_type('clockid_t', 'time.h') have_library('rt', 'clock_gettime', 'time.h') + +# taken from ext/socket/extconf.rb in ruby/trunk: +# OpenSolaris: +have_library("nsl", "t_open") +have_library("socket", "socket") + have_func("poll", "poll.h") have_func("getaddrinfo", %w(sys/types.h sys/socket.h netdb.h)) or abort "getaddrinfo required" -- cgit v1.2.3-24-ge0c7