mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-08-03 01:38:07 -04:00
31 lines
947 B
C
31 lines
947 B
C
$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
|