From: grant@antiflux.org (Grant Hollingworth)
Subject: [sup-talk] [PATCH] fixed dlopen of libc for os x
Date: Thu, 24 Apr 2008 19:10:24 -0400 [thread overview]
Message-ID: <1209078492-sup-5794@spooky.local> (raw)
In-Reply-To: <1208905597-sup-4977@south>
OS X likes to do its own thing.
---
lib/sup.rb | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/lib/sup.rb b/lib/sup.rb
index c4d1dd5..afd030f 100644
--- a/lib/sup.rb
+++ b/lib/sup.rb
@@ -14,7 +14,7 @@ require 'curses'
require 'dl/import'
module LibC
extend DL::Importable
- dlload "libc.so.6"
+ dlload Config::CONFIG['arch'] =~ /darwin/ ? "libc.dylib" : "libc.so.6"
extern "void setlocale(int, const char *)"
end
LibC.setlocale(6, "") # LC_ALL == 6
--
1.5.4.4
next prev parent reply other threads:[~2008-04-24 23:10 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-21 20:37 [sup-talk] System encoding versus messages encoding Israel Herraiz
2008-04-22 11:39 ` Shot (Piotr Szotkowski)
2008-04-22 23:18 ` William Morgan
2008-04-23 0:09 ` Israel Herraiz
2008-04-23 2:03 ` William Morgan
2008-04-23 1:08 ` Israel Herraiz
2008-04-23 1:53 ` William Morgan
2008-04-24 19:36 ` Marc Hartstein
2008-04-24 23:10 ` Grant Hollingworth [this message]
2008-04-27 6:48 [sup-talk] [PATCH] fixed dlopen of libc for os x William Morgan
2008-04-27 8:45 ` Christopher Warrington
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1209078492-sup-5794@spooky.local \
--to=grant@antiflux.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox