diff options
Diffstat (limited to 'media-gfx/blender/files/blender-2.49b-gcc46.patch')
-rw-r--r-- | media-gfx/blender/files/blender-2.49b-gcc46.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/media-gfx/blender/files/blender-2.49b-gcc46.patch b/media-gfx/blender/files/blender-2.49b-gcc46.patch new file mode 100644 index 000000000000..195ca0c24b99 --- /dev/null +++ b/media-gfx/blender/files/blender-2.49b-gcc46.patch @@ -0,0 +1,32 @@ +http://bugs.gentoo.org/452694 + +--- extern/bullet2/src/BulletSoftBody/btSoftBodyInternals.h ++++ extern/bullet2/src/BulletSoftBody/btSoftBodyInternals.h +@@ -18,6 +18,7 @@ + #define _BT_SOFT_BODY_INTERNALS_H
+
+ #include "btSoftBody.h"
++#include <string.h>
+
+ #include "LinearMath/btQuickprof.h"
+ #include "BulletCollision/BroadphaseCollision/btBroadphaseInterface.h"
+@@ -171,8 +172,7 @@ + template <typename T>
+ static inline void ZeroInitialize(T& value)
+ {
+- static const T zerodummy;
+- value=zerodummy;
++ memset(&value,0,sizeof(T));
+ }
+ //
+ template <typename T>
+--- intern/memutil/MEM_Allocator.h ++++ intern/memutil/MEM_Allocator.h +@@ -24,6 +24,7 @@ + #ifndef __MEM_Allocator_h_included__ + #define __MEM_Allocator_h_included__ 1 + ++#include <cstddef> + #include "guardedalloc/MEM_guardedalloc.h" + #include "guardedalloc/BLO_sys_types.h" + |