kgio RubyGem user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / code / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download mbox.gz: |
* Re: [PATCH] Fix build on OpenBSD
  2011-02-15  5:55 14% [PATCH] Fix build on OpenBSD Jeremy Evans
@ 2011-02-15 16:58  8% ` Eric Wong
  0 siblings, 0 replies; 2+ results
From: Eric Wong @ 2011-02-15 16:58 UTC (permalink / raw)
  To: kgio

Jeremy Evans <code@jeremyevans.net> wrote:
> OpenBSD's getnameinfo(3) requires the sys/types.h header file, and
> including it should not cause a problem for other OSes.

Thanks Jeremy!  Just pushed this out along with a 2.3.2 release

-- 
Eric Wong


^ permalink raw reply	[relevance 8%]

* [PATCH] Fix build on OpenBSD
@ 2011-02-15  5:55 14% Jeremy Evans
  2011-02-15 16:58  8% ` Eric Wong
  0 siblings, 1 reply; 2+ results
From: Jeremy Evans @ 2011-02-15  5:55 UTC (permalink / raw)
  To: kgio

>From 88926e121eabeeada8110041b9b444be07936098 Mon Sep 17 00:00:00 2001
From: Jeremy Evans <code@jeremyevans.net>
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




^ permalink raw reply related	[relevance 14%]

Results 1-2 of 2 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2011-02-15  5:55 14% [PATCH] Fix build on OpenBSD Jeremy Evans
2011-02-15 16:58  8% ` Eric Wong

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