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

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 <normalperson@yhbt.net>
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


       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:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://yhbt.net/kgio/

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

  git send-email \
    --in-reply-to=20110613213935.GB5065@dcvr.yhbt.net \
    --to=normalperson@yhbt.net \
    --cc=kgio@librelist.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* 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

	https://yhbt.net/kgio.git/

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