lib/logging/utils.rb in logging-1.7.0 vs lib/logging/utils.rb in logging-1.7.1

- old
+ new

@@ -164,10 +164,11 @@ ensure flock LOCK_UN end # :stopdoc: - if Config::CONFIG['host_os'] =~ /mswin|windows|cygwin/i + conf = defined?(RbConfig) ? RbConfig::CONFIG : Config::CONFIG + if conf['host_os'] =~ /mswin|windows|cygwin/i # don't lock files on windows undef :flock?, :flock_sh def flock?() yield; end def flock_sh() yield; end end