Update Haiku support (#15674)
commit1059b3e6f59ef92ccba55092fa410e59fdae091f
authorCalvin Buckley <calvin@cmpct.info>
Wed, 31 Jul 2019 12:23:48 +0000 (31 09:23 -0300)
committerAlexander Köplinger <alex.koeplinger@outlook.com>
Wed, 31 Jul 2019 12:23:48 +0000 (31 14:23 +0200)
treefd07743bb3bca7ee2f5675b6fd2d976e3ad84860
parentf86d46d136f2b09f85f005a5a0469db69fafa00d
Update Haiku support (#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.
configure.ac
mcs/class/corlib/Test/Mono/MonoNativePlatformType.cs
mono/eglib/gstr.c
mono/native/Makefile.am
mono/native/mono-native-platform.h
mono/utils/mono-os-mutex.h