commit a983f1c52c021dd9dd8a22b259af0c29e69987d3
parent a9ee88a372ec6b670e495cda670a8d6f9dfac04b
Author: Whyme Lyu <callme5long@gmail.com>
Date: Tue, 23 Apr 2013 00:11:31 +0800
Explicitly require 'rbconfig' before using it
Diffstat:
2 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/bin/sup b/bin/sup
@@ -117,6 +117,7 @@ end
##
## BSD users: if libc.so.6 is not found, try installing compat6x.
require 'dl/import'
+require 'rbconfig'
module LibC
extend DL.const_defined?(:Importer) ? DL::Importer : DL::Importable
setlocale_lib = case RbConfig::CONFIG['arch']
diff --git a/lib/sup/message-chunks.rb b/lib/sup/message-chunks.rb
@@ -1,4 +1,5 @@
require 'tempfile'
+require 'rbconfig'
## Here we define all the "chunks" that a message is parsed
## into. Chunks are used by ThreadViewMode to render a message. Chunks