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=-0.4 required=3.0 tests=BAYES_00,DATE_IN_PAST_06_12, MSGID_FROM_MTA_HEADER,URIBL_BLOCKED shortcircuit=no autolearn=no version=3.3.2 Path: news.gmane.org!not-for-mail From: Jeremy Evans Newsgroups: gmane.comp.lang.ruby.kgio.general Subject: [PATCH] Fix build on OpenBSD Date: Mon, 14 Feb 2011 21:55:11 -0800 Message-ID: <20110215055511.GL12132@jeremyevans.local> References: <20110215055511.GL12132@jeremyevans.local> 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 1297787323 2030 80.91.229.12 (15 Feb 2011 16:28:43 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 15 Feb 2011 16:28:43 +0000 (UTC) To: kgio@librelist.com Original-X-From: kgio@librelist.com Tue Feb 15 17:28:39 2011 Return-path: Envelope-to: gclrkg-kgio@m.gmane.org In-Reply-To: <20110215055511.GL12132@jeremyevans.local> List-Archive: List-Help: List-Id: List-Post: List-Subscribe: List-Unsubscribe: Precedence: list Original-Sender: kgio@librelist.com Xref: news.gmane.org gmane.comp.lang.ruby.kgio.general:10 Archived-At: Received: from zedshaw.xen.prgmr.com ([64.71.167.205]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PpNlV-0004rL-4h for gclrkg-kgio@m.gmane.org; Tue, 15 Feb 2011 17:28:37 +0100 Received: from zedshaw.xen.prgmr.com (localhost [IPv6:::1]) by zedshaw.xen.prgmr.com (Postfix) with ESMTP id 439B821C321 for ; Tue, 15 Feb 2011 16:28:30 +0000 (UTC) >>From 88926e121eabeeada8110041b9b444be07936098 Mon Sep 17 00:00:00 2001 From: Jeremy Evans Date: Mon, 14 Feb 2011 17:03:53 -0800 Subject: [PATCH] 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. --- ext/kgio/extconf.rb | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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" -- 1.7.3.2