pkgsrc/lang/spidermonkey52/patches/patch-memory_mozalloc_mozalloc__abort.cpp
jperkin f5d2ef7aa5 spidermonkey52: Add support for SunOS.
Works well enough to only produce 7 minor failures out of 6679
regression tests.
2018-05-11 19:18:35 +00:00

18 lines
551 B
C++

$NetBSD: patch-memory_mozalloc_mozalloc__abort.cpp,v 1.1 2018/05/11 19:18:35 jperkin Exp $
Support SunOS.
--- memory/mozalloc/mozalloc_abort.cpp.orig 2018-04-28 01:04:04.000000000 +0000
+++ memory/mozalloc/mozalloc_abort.cpp
@@ -68,7 +68,11 @@ void fillAbortMessage(char (&msg)[N], ui
//
// That segmentation fault will be interpreted as another bug by ASan and as a
// result, ASan will just exit(1) instead of aborting.
+#ifdef __sun
+void std::abort(void)
+#else
void abort(void)
+#endif
{
#ifdef MOZ_WIDGET_ANDROID
char msg[64] = {};