diff options
Diffstat (limited to 'devel/electron37/files/patch-skia_ext_SkMemory__new__handler.cpp')
-rw-r--r-- | devel/electron37/files/patch-skia_ext_SkMemory__new__handler.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/devel/electron37/files/patch-skia_ext_SkMemory__new__handler.cpp b/devel/electron37/files/patch-skia_ext_SkMemory__new__handler.cpp new file mode 100644 index 000000000000..32a9df44057a --- /dev/null +++ b/devel/electron37/files/patch-skia_ext_SkMemory__new__handler.cpp @@ -0,0 +1,20 @@ +--- skia/ext/SkMemory_new_handler.cpp.orig 2025-03-24 20:50:14 UTC ++++ skia/ext/SkMemory_new_handler.cpp +@@ -24,7 +24,7 @@ + #include <windows.h> + #elif BUILDFLAG(IS_APPLE) + #include <malloc/malloc.h> +-#else ++#elif !BUILDFLAG(IS_BSD) + #include <malloc.h> + #endif + +@@ -110,7 +110,7 @@ static void* malloc_nothrow(size_t size, int debug_sen + // 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. |