Skip to content

Update outdated __HAIKU__ directives

Hanicef requested to merge Hanicef/SRB2:haiku-update-support into next

Just a few updates on the preprocessor directives regarding Haiku, as some of these directives were outdated and excluded stuff that Haiku didn't used to have but does now. These are the differences:

  • Haiku now includes statvfs and HAVE_TERMIOS, allowing terminal input to function and avoids arbitrary out-of-space errors.
  • NEWSIGNALHANDLER is no longer defined in Haiku - this is mainly because it has it's own dialog for program crashes that are far more valuable (you can, for example, attach a debugger straight on the program right before the crash), and that definition silenced that crash dialog.
  • The code now uses statvfs instead of statfs, which is the POSIX standard function and should work on most platforms (confirmed to work on Haiku, Linux and FreeBSD).

I still have to figure out the API for retrieving memory info on Haiku, though, but that's for another patch.

Merge request reports

Loading