mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@131267 d073be05-634f-4543-b044-5fe20cf6d1d6
16 lines
500 B
Diff
16 lines
500 B
Diff
--- Source/JavaScriptCore/offlineasm/offsets.rb.orig 2012-11-23 14:12:16.000000000 -0600
|
|
+++ Source/JavaScriptCore/offlineasm/offsets.rb 2013-01-22 19:35:47.000000000 -0600
|
|
@@ -109,7 +109,11 @@
|
|
File.open(file, "r") {
|
|
| inp |
|
|
loop {
|
|
- byte = inp.getbyte
|
|
+ if RUBY_VERSION >= '1.8.7'
|
|
+ byte = inp.getbyte
|
|
+ else
|
|
+ byte = inp.getc
|
|
+ end
|
|
break unless byte
|
|
fileBytes << byte
|
|
}
|