mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-16 17:10:20 -10:00
[runtime] Workaround signal() configure check in Android.
So, I broke this on Android back in https://github.com/mono/mono/commit/d3726dcde9ef373157cd533ce8091cdde89dfa8e. Turns out signal() is defined inline in Android: static __inline__ __sighandler_t signal(int s, __sighandler_t f) { return bsd_signal(s,f); } So we need to hardcode the define in case we're on an Android platform. Fixes BclTests on Android: I/mono-stdout( 1200): UnixSignalTest F/ ( 1200): signal() is not supported by this platform F/libc ( 1200): Fatal signal 6 (SIGABRT) at 0x000004b0 (code=-6), thread 1215 (Instrumentation)
This commit is contained in:
1 parent
0b5220934e
commit
b8a16d1f80
1 file changed
+6
@@ -1101,6 +1101,12 @@ dnl ***********************************
|
||||
AC_CHECK_HEADERS(signal.h)
|
||||
AC_CHECK_FUNCS(sigaction)
|
||||
|
||||
# signal() is declared inline in Android headers
|
||||
# so we need to workaround it by overriding the check.
|
||||
if test x$platform_android = xyes; then
|
||||
AC_DEFINE(HAVE_SIGNAL,1)
|
||||
fi
|
||||
|
||||
if test x$host_win32 = xno; then
|
||||
|
||||
dnl hires monotonic clock support
|
||||
|
||||
Reference in new issue
Block a user