kgio RubyGem user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / code / Atom feed
From: Eric Wong <>
Subject: [PATCH] extconf: -lnsl and -lsocket checks for OpenSolaris
Date: Mon, 13 Jun 2011 14:39:35 -0700	[thread overview]
Message-ID: <> (raw)
In-Reply-To: <>

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')
 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

       reply	other threads:[~2011-06-13 21:39 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-13 21:39 Eric Wong [this message]
2011-06-13 23:38 ` [PATCH] extconf: -lnsl and -lsocket checks for OpenSolaris Jeremy Evans
2011-06-14 18:39   ` Eric Wong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

  List information:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).