Don't use clock_nanosleep on PASE (mono/mono#15988)
authorCalvin Buckley <calvin@cmpct.info>
Fri, 2 Aug 2019 21:04:50 +0000 (18:04 -0300)
committerAlexander Köplinger <alex.koeplinger@outlook.com>
Fri, 2 Aug 2019 21:04:50 +0000 (23:04 +0200)
commitf8c201e8c8c6825fc59011715fdb54a571458104
treea18a5c8aaafb9a9c2b1e8320f2694e8e3407298f
parent35a4b052794e9b7cc22a31c04eb685028f913734
Don't use clock_nanosleep on PASE (mono/mono#15988)

* Don't use clock_nanosleep on PASE

PASE exports this AIX syscall so autoconf detects it, but using it
will trigger SIGILL (for unimplemented syscall), which emits a LIC
log entry type of 4700-000F.

* Change ifdef guard for clock_nanosleep in threads

It only used clock_nanosleep on Linux, but enable it for all except
PASE. Android used to be guarded against, but the reasoning was
unknown, so @akoeplinger requested to have that guard removed.

Commit migrated from https://github.com/mono/mono/commit/9ea07610ee4c2879f5d598aa6f34b6df79401047
src/mono/mono/eglib/gdate-unix.c
src/mono/mono/mini/mini-posix.c
src/mono/mono/utils/mono-threads.c