summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Rakefile2
-rw-r--r--ext/libyajl2/extconf.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/Rakefile b/Rakefile
index 4288565..7891676 100644
--- a/Rakefile
+++ b/Rakefile
@@ -95,7 +95,7 @@ task :prep do
# apply patches that haven't yet been pushed upstream
Dir["#{build_path}/patches/*"].sort.each do |file|
Dir.chdir build_path
- sh "patch -p2 < #{file}"
+ sh "patch -p2 --binary < #{file}"
end
# generate the yajl_version.h header file without invoking cmake
diff --git a/ext/libyajl2/extconf.rb b/ext/libyajl2/extconf.rb
index 1e94507..0800f1f 100644
--- a/ext/libyajl2/extconf.rb
+++ b/ext/libyajl2/extconf.rb
@@ -24,7 +24,7 @@ module Libyajl2Build
PREFIX = File.expand_path("../../../lib/libyajl2/vendored-libyajl2", __FILE__).freeze
def self.windows?
- !!(RUBY_PLATFORM =~ /mswin|mingw|windows/)
+ !!(RUBY_PLATFORM =~ /mswin|mingw|cygwin|windows/)
end
def self.libyajl2_vendor_dir