Update Haiku support (mono/mono#15674)
authorCalvin Buckley <calvin@cmpct.info>
Wed, 31 Jul 2019 12:23:48 +0000 (09:23 -0300)
committerAlexander Köplinger <alex.koeplinger@outlook.com>
Wed, 31 Jul 2019 12:23:48 +0000 (14:23 +0200)
commit99c025b9792642e6fd32655214d43dcd4fe83abe
tree715eeaae59ceb010525f4fa7d7a8b890a62bb9bc
parent9ed99855a4114171fdd5a7088719748240ce0320
Update Haiku support (mono/mono#15674)

* Build System.Native.

* Disable `pthread_mutexattr_setprotocol` use, since it returns EINVAL on Haiku.

* Disable the `strerror` cache on Haiku. On Haiku, errors begin at `0x8000_0000` like a Win32 HRESULT. This means the indexing would be on negative numbers, which is a no-no. There are a few alternative ways to keep it though: hashtable, tuple array, offset...

Unfortunately, doesn't build all the way through. Has a tendency to bomb out during building `build-unix`. Will investigate why.

Commit migrated from https://github.com/mono/mono/commit/1059b3e6f59ef92ccba55092fa410e59fdae091f
src/mono/configure.ac
src/mono/mono/eglib/gstr.c
src/mono/mono/native/Makefile.am
src/mono/mono/native/mono-native-platform.h
src/mono/mono/utils/mono-os-mutex.h