From: Jeremy Evans <code@jeremyevans.net>
To: kgio@librelist.com
Subject: [PATCH] Fix build on OpenBSD
Date: Mon, 14 Feb 2011 21:55:11 -0800 [thread overview]
Message-ID: <20110215055511.GL12132@jeremyevans.local> (raw)
In-Reply-To: <20110215055511.GL12132@jeremyevans.local>
>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
next parent reply other threads:[~2011-02-15 16:28 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-15 5:55 Jeremy Evans [this message]
2011-02-15 16:58 ` [PATCH] Fix build on OpenBSD 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=20110215055511.GL12132@jeremyevans.local \
--to=code@jeremyevans.net \
--cc=kgio@librelist.com \
/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).