Project

General

Profile

Actions

Feature #2639

closed

ifdef References to __BEOS__ should be changed to also include __HAIKU__

Feature #2639: ifdef References to __BEOS__ should be changed to also include __HAIKU__

Added by kallisti5 (Alexander von Gluck) almost 16 years ago. Updated over 14 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:27767]

Description

=begin
The Be Operating system's functionality is almost completely replaced by Haiku-os (http://haiku-os.org). As of the latest Ruby 1.9 stable release BEOS is only currently referenced in os-dependent code. Changing the references to BEOS to also cover HAIKU makes ruby 1.9 almost compile on Haiku.

~/develop/ruby-1.9.1-p376> grep BEOS *
ChangeLog: closesocket, so check BEOS macro directly. (I was worried
dln.c:#ifdef BEOS
dln.c:#ifdef BEOS
dln.c:#endif /* BEOS/
file.c:#ifdef BEOS /
should not change ID if -1 /
file.c:#endif /
BEOS */
io.c:#if defined(BOW) || defined(CYGWIN) || defined(_WIN32) || defined(EMX) || defined(BEOS)
io.c:#ifdef BEOS
io.c:#elif defined(BEOS)
io.c:#ifdef BEOS
numeric.c:#elif defined(BEOS)
signal.c:#ifdef BEOS
=end


Files

ruby-haiku-macro-r26395.diff (2.65 KB) ruby-haiku-macro-r26395.diff patch to check for BEOS as well as HAIKU kallisti5 (Alexander von Gluck), 01/25/2010 11:58 AM
Actions

Also available in: PDF Atom