blob: e4e0158426d7d566e0a3b984401ea2ae23c8fac2 (
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
|
$NetBSD: patch-qtwebkit_Source_WTF_wtf_Platform.h,v 1.1 2013/12/13 14:38:35 ryoon Exp $
* Disable JIT support for NetBSD, fix segfault of qtwebkit consumers
* Use system's malloc for NetBSD, do not use fastmalloc from qt5,
fix segfault of qtwebkit consumers
--- qtwebkit/Source/WTF/wtf/Platform.h.orig 2013-11-27 01:01:21.000000000 +0000
+++ qtwebkit/Source/WTF/wtf/Platform.h
@@ -36,6 +36,9 @@
macros, policy decision macros, and top-level port definitions. ==== */
#define PLATFORM(WTF_FEATURE) (defined WTF_PLATFORM_##WTF_FEATURE && WTF_PLATFORM_##WTF_FEATURE)
+#if defined(__NetBSD__)
+#define ENABLE_JIT 0
+#endif
/* ==== Platform adaptation macros: these describe properties of the target environment. ==== */
@@ -694,6 +697,11 @@
#endif
#endif
+/* Workaround an issue with fastMalloc on NetBSD */
+#if OS(NETBSD)
+#define USE_SYSTEM_MALLOC 1
+#endif
+
#if PLATFORM(EFL)
#define ENABLE_GLOBAL_FASTMALLOC_NEW 0
#endif
|