apply fix [#26117] Recent changes to "mikktspace.c" broke building on FreeBSD. Patch attached.

also check for NetBSD.

note: we probably should use define HAVE_MALLOC_H, seems common for other projects.
This commit is contained in:
Campbell Barton 2011-02-17 08:35:15 +00:00
parent fb496b6bad
commit 538d9180d3

@ -24,8 +24,8 @@
#include <string.h>
#include <float.h>
#ifdef __APPLE__
#include <stdlib.h> /* OSX gets its malloc stuff through here */
#if defined (__APPLE__) || defined (__FreeBSD__) || defined (__NetBSD__)
#include <stdlib.h> /* OSX & BSD's get its malloc stuff through here */
#else
#include <malloc.h>
#endif