summaryrefslogtreecommitdiff
path: root/lib/mkmf.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mkmf.rb')
-rw-r--r--lib/mkmf.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mkmf.rb b/lib/mkmf.rb
index 5e9d646e4c2..c83b54a1a45 100644
--- a/lib/mkmf.rb
+++ b/lib/mkmf.rb
@@ -1272,7 +1272,7 @@ def create_header(header = "extconf.h")
hdr << "#endif\n"
hdr = hdr.join
unless (IO.read(header) == hdr rescue false)
- open(header, "w") do |hfile|
+ open(header, "wb") do |hfile|
hfile.write(hdr)
end
end