summaryrefslogtreecommitdiff
path: root/lib/tmpdir.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tmpdir.rb')
-rw-r--r--lib/tmpdir.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/tmpdir.rb b/lib/tmpdir.rb
index a3bb9f4..d60edd5 100644
--- a/lib/tmpdir.rb
+++ b/lib/tmpdir.rb
@@ -5,7 +5,10 @@
#
require 'fileutils'
-require 'etc.so'
+begin
+ require 'etc.so'
+rescue LoadError # rescue LoadError for miniruby
+end
class Dir