From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS6939 64.71.128.0/18 X-Spam-Status: No, score=-2.2 required=3.0 tests=AWL,BAYES_00, MSGID_FROM_MTA_HEADER,URIBL_BLOCKED shortcircuit=no autolearn=unavailable version=3.3.2 Path: news.gmane.org!not-for-mail From: Eric Wong Newsgroups: gmane.comp.lang.ruby.kgio.general Subject: [PATCH] extconf: -lnsl and -lsocket checks for OpenSolaris Date: Mon, 13 Jun 2011 14:39:35 -0700 Message-ID: <20110613213935.GB5065@dcvr.yhbt.net> References: <20110613213935.GB5065@dcvr.yhbt.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1308001192 30542 80.91.229.12 (13 Jun 2011 21:39:52 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 13 Jun 2011 21:39:52 +0000 (UTC) To: kgio@librelist.org Original-X-From: kgio@librelist.org Mon Jun 13 23:39:48 2011 Return-path: Envelope-to: gclrkg-kgio@m.gmane.org In-Reply-To: <20110613213935.GB5065@dcvr.yhbt.net> List-Archive: List-Help: List-Id: List-Post: List-Subscribe: List-Unsubscribe: Precedence: list Original-Sender: kgio@librelist.org Xref: news.gmane.org gmane.comp.lang.ruby.kgio.general:28 Archived-At: Received: from zedshaw.xen.prgmr.com ([64.71.167.205]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QWErK-00046N-Vv for gclrkg-kgio@m.gmane.org; Mon, 13 Jun 2011 23:39:47 +0200 Received: from zedshaw.xen.prgmr.com (localhost [IPv6:::1]) by zedshaw.xen.prgmr.com (Postfix) with ESMTP id 3CE2021C977 for ; Mon, 13 Jun 2011 21:39:43 +0000 (UTC) I've just pushed this out to kgio.git Can *BSD/OpenSolaris users make sure this doesn't break anything for them? Thanks! >>From d224563823accca63fd871260e3f0dad6758c8d4 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 13 Jun 2011 14:26:10 -0700 Subject: [PATCH] extconf: -lnsl and -lsocket checks for OpenSolaris Reported via private email. --- ext/kgio/extconf.rb | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/ext/kgio/extconf.rb b/ext/kgio/extconf.rb index f988ce1..f277710 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" -- Eric Wong