From: Alexander von Gluck Date: 2010-01-25T10:26:00+09:00 Subject: [ruby-core:27767] [Feature #2639] ifdef References to __BEOS__ should be changed to also include __HAIKU__ Feature #2639: ifdef References to __BEOS__ should be changed to also include __HAIKU__ http://redmine.ruby-lang.org/issues/show/2639 Author: Alexander von Gluck Status: Open, Priority: Normal 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__ ---------------------------------------- http://redmine.ruby-lang.org