Permalink
Browse files

Merge pull request #86 from jansegre/master

This should fix #85
  • Loading branch information...
delano committed Mar 3, 2013
2 parents 0de7bfd + e6b864b commit 46bfb67c509df6effdb0425bd40444449c6e572e
Showing with 2 additions and 6 deletions.
  1. +2 −6 lib/net/ssh/authentication/pageant.rb
@@ -2,9 +2,7 @@
if RUBY_VERSION < "1.9"
require 'dl/struct'
-end
-
-if RUBY_VERSION =~ /^1.9/
+else
require 'dl/types'
require 'dl'
end
@@ -34,9 +32,7 @@ module Win
dlload 'user32'
dlload 'kernel32'
- end
-
- if RUBY_VERSION =~ /^1.9/
+ else
extend DL::Importer
dlload 'user32','kernel32'
include DL::Win32Types

0 comments on commit 46bfb67

Please sign in to comment.