pkgsrc/graphics/blender-lts/patches/patch-intern_guardedalloc_intern_mallocn__intern.h
ryoon c7fb77538a graphics/blender-lts: import blender-2.83.5
Blender is the free and open source 3D creation suite.

It supports the entirety of the 3D pipeline - modeling, rigging, animation,
simulation, rendering, compositing and motion tracking, video editing and
2D animation pipeline.

This package provides Long Term Support (LTS) version.
2020-09-05 11:46:40 +00:00

15 lines
545 B
C

$NetBSD: patch-intern_guardedalloc_intern_mallocn__intern.h,v 1.1 2020/09/05 11:46:40 ryoon Exp $
Support NetBSD.
--- intern/guardedalloc/intern/mallocn_intern.h.orig 2019-07-24 07:41:39.000000000 +0000
+++ intern/guardedalloc/intern/mallocn_intern.h
@@ -55,6 +55,8 @@
#elif defined(__HAIKU__)
# include <malloc.h>
size_t malloc_usable_size(void *ptr);
+#elif defined(__NetBSD__)
+# define malloc_usable_size(p) (0)
#else
# pragma message "We don't know how to use malloc_usable_size on your platform"
# undef USE_MALLOC_USABLE_SIZE