Permalink
Browse files

Adding support to Platform calls for FreeBSD

  • Loading branch information...
1 parent 9d070b1 commit d3a37b50155243cb3617de52c984a6f28d5dee70 @kmwhite kmwhite committed Sep 29, 2011
Showing with 6 additions and 0 deletions.
  1. +4 −0 lib/virtualbox/ext/platform.rb
  2. +2 −0 lib/virtualbox/lib.rb
@@ -19,6 +19,10 @@ def solaris?
platform.include?("solaris")
end
+ def freebsd?
+ platform.include?("freebsd")
+ end
+
def jruby?
RbConfig::CONFIG["ruby_install_name"] == "jruby"
end
@@ -62,6 +62,8 @@ def lib_path
"/usr/lib64/virtualbox/VBoxXPCOMC.so"]
elsif Platform.solaris?
@@lib_path = ["/opt/VirtualBox/amd64/VBoxXPCOMC.so", "/opt/VirtualBox/i386/VBoxXPCOMC.so"]
+ elsif Platform.freebsd?
+ @@lib_path = ["/usr/local/lib/virtualbox/VBoxXPCOMC.so"]
elsif Platform.windows?
@@lib_path = "Unknown"
else

0 comments on commit d3a37b5

Please sign in to comment.