summaryrefslogtreecommitdiff
path: root/ext/openssl/deprecation.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ext/openssl/deprecation.rb')
-rw-r--r--ext/openssl/deprecation.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/openssl/deprecation.rb b/ext/openssl/deprecation.rb
index 7dfc87c1c6..0c3ab6287e 100644
--- a/ext/openssl/deprecation.rb
+++ b/ext/openssl/deprecation.rb
@@ -3,7 +3,7 @@ module OpenSSL
def self.deprecated_warning_flag
unless flag = (@deprecated_warning_flag ||= nil)
if try_compile("", flag = "-Werror=deprecated-declarations")
- if with_config("broken-apple-openssl")
+ if /darwin/ =~ RUBY_PLATFORM and with_config("broken-apple-openssl")
flag = "-Wno-deprecated-declarations"
end
$warnflags << " #{flag}"