blob: 9ab7015ff6f68016516ad473816508ccf23a138e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
$NetBSD: patch-Source_WTF_wtf_Platform.h,v 1.4 2018/08/01 15:01:08 maya Exp $
* Use system's malloc for NetBSD, do not use fastmalloc from qt5,
fix segfault of qtwebkit consumers
* Disable DISASSEMBLER on Linux. Unresolved symbols as not building
UDis86Disassembler.cpp for some reason.
--- Source/WTF/wtf/Platform.h.orig 2017-06-04 20:16:06.000000000 +0000
+++ Source/WTF/wtf/Platform.h
@@ -691,6 +694,12 @@
#define USE_SYSTEM_MALLOC 1
#endif
+/* Workaround an issue with fastMalloc on NetBSD */
+#if OS(NETBSD)
+#define USE_SYSTEM_MALLOC 1
+#define ENABLE_ASSEMBLER 1
+#endif
+
#define ENABLE_DEBUG_WITH_BREAKPOINT 0
#define ENABLE_SAMPLING_COUNTERS 0
#define ENABLE_SAMPLING_FLAGS 0
@@ -746,6 +754,10 @@
#define USE_UDIS86 1
#endif
+#if OS(LINUX)
+#define ENABLE_DISASSEMBLER 0
+#endif
+
#if !defined(ENABLE_DISASSEMBLER) && USE(UDIS86)
#define ENABLE_DISASSEMBLER 1
#endif
|