aboutsummaryrefslogtreecommitdiff
path: root/devel/electron29/files/patch-skia_ext_SkMemory__new__handler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'devel/electron29/files/patch-skia_ext_SkMemory__new__handler.cpp')
-rw-r--r--devel/electron29/files/patch-skia_ext_SkMemory__new__handler.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/devel/electron29/files/patch-skia_ext_SkMemory__new__handler.cpp b/devel/electron29/files/patch-skia_ext_SkMemory__new__handler.cpp
new file mode 100644
index 000000000000..a8ecc17a4185
--- /dev/null
+++ b/devel/electron29/files/patch-skia_ext_SkMemory__new__handler.cpp
@@ -0,0 +1,11 @@
+--- skia/ext/SkMemory_new_handler.cpp.orig 2023-05-25 00:42:01 UTC
++++ skia/ext/SkMemory_new_handler.cpp
+@@ -86,7 +86,7 @@ static void* malloc_nothrow(size_t size) {
+ // TODO(b.kelemen): we should always use UncheckedMalloc but currently it
+ // doesn't work as intended everywhere.
+ void* result;
+-#if BUILDFLAG(IS_IOS)
++#if BUILDFLAG(IS_IOS) || BUILDFLAG(IS_BSD)
+ result = malloc(size);
+ #else
+ // It's the responsibility of the caller to check the return value.