Don't use clock_nanosleep on PASE (#15988)
commit9ea07610ee4c2879f5d598aa6f34b6df79401047
authorCalvin Buckley <calvin@cmpct.info>
Fri, 2 Aug 2019 21:04:50 +0000 (2 18:04 -0300)
committerAlexander Köplinger <alex.koeplinger@outlook.com>
Fri, 2 Aug 2019 21:04:50 +0000 (2 23:04 +0200)
tree2b22b27e22efa293e45320d8ecba73bab4832020
parent713df6a9c48c2c4da4037b4bbad43244fbcc505f
Don't use clock_nanosleep on PASE (#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.
mono/eglib/gdate-unix.c
mono/mini/mini-posix.c
mono/utils/mono-threads.c