[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [34929] trunk/blender/intern/mikktspace/ mikktspace.c: apply fix [#26117] Recent changes to "mikktspace.c" broke building on FreeBSD.
Campbell Barton
ideasman42 at gmail.com
Thu Feb 17 09:35:16 CET 2011
Revision: 34929
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=34929
Author: campbellbarton
Date: 2011-02-17 08:35:15 +0000 (Thu, 17 Feb 2011)
Log Message:
-----------
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.
Modified Paths:
--------------
trunk/blender/intern/mikktspace/mikktspace.c
Modified: trunk/blender/intern/mikktspace/mikktspace.c
===================================================================
--- trunk/blender/intern/mikktspace/mikktspace.c 2011-02-17 08:01:59 UTC (rev 34928)
+++ trunk/blender/intern/mikktspace/mikktspace.c 2011-02-17 08:35:15 UTC (rev 34929)
@@ -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
More information about the Bf-blender-cvs
mailing list