From mboxrd@z Thu Jan 1 00:00:00 1970 From: grant@antiflux.org (Grant Hollingworth) Date: Thu, 24 Apr 2008 19:10:24 -0400 Subject: [sup-talk] [PATCH] fixed dlopen of libc for os x In-Reply-To: <1208905597-sup-4977@south> References: <691d00b80804211337h32fe47b0l7c5ab0b331ae71af@mail.gmail.com> <1208905597-sup-4977@south> Message-ID: <1209078492-sup-5794@spooky.local> 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