diff options
author | r-stu31 <r.stu3.1@googlemail.com> | 2014-06-30 06:28:46 +0200 |
---|---|---|
committer | r-stu31 <r.stu3.1@googlemail.com> | 2014-06-30 06:28:46 +0200 |
commit | 985021087a13924089a0a3c78a2d5c73cd5e5f3f (patch) | |
tree | 422d5e365d74c6f0f059dd88a32da81f0f4be74b | |
parent | df496d6726ef4ef78b6d03bb0d7324663dfd6a2a (diff) | |
download | ffi-985021087a13924089a0a3c78a2d5c73cd5e5f3f.tar.gz |
Don't include NetBSD version in ARCH. NetBSD is BSD.
-rw-r--r-- | lib/ffi/platform.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/ffi/platform.rb b/lib/ffi/platform.rb index ea8571b..bba160a 100644 --- a/lib/ffi/platform.rb +++ b/lib/ffi/platform.rb @@ -42,6 +42,8 @@ module FFI "darwin" when /freebsd/ "freebsd" + when /netbsd/ + "netbsd" when /openbsd/ "openbsd" when /sunos|solaris/ @@ -81,9 +83,10 @@ module FFI IS_LINUX = is_os("linux") IS_MAC = is_os("darwin") IS_FREEBSD = is_os("freebsd") + IS_NETBSD = is_os("netbsd") IS_OPENBSD = is_os("openbsd") IS_WINDOWS = is_os("windows") - IS_BSD = IS_MAC || IS_FREEBSD || IS_OPENBSD + IS_BSD = IS_MAC || IS_FREEBSD || IS_NETBSD || IS_OPENBSD CONF_DIR = File.join(File.dirname(__FILE__), 'platform', NAME) public |