summaryrefslogtreecommitdiff
path: root/www/firefox52/patches/patch-memory_mozalloc_mozalloc__abort.cpp
blob: 0aa9f1df77850ca9fda5bb5444a4a0b34aea5fb8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
$NetBSD: patch-memory_mozalloc_mozalloc__abort.cpp,v 1.1 2017/04/27 01:55:57 ryoon Exp $

* Support Solaris

--- memory/mozalloc/mozalloc_abort.cpp.orig	2015-08-24 21:53:14.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.
+#if defined(SOLARIS)
+void std::abort(void)
+#else
 void abort(void)
+#endif
 {
 #ifdef MOZ_WIDGET_ANDROID
     char msg[64] = {};