aboutsummaryrefslogtreecommitdiff
path: root/devel/bullet
diff options
context:
space:
mode:
authorJohn Marino <marino@FreeBSD.org>2013-11-02 13:11:21 +0000
committerJohn Marino <marino@FreeBSD.org>2013-11-02 13:11:21 +0000
commitb554c4f8f5ff5e18ad8a546d027cea95cf792e1d (patch)
tree27c07775a0a8894869e9af0ef022a4b542c705b2 /devel/bullet
parent76c0ae56963f140569573eb3db99a4938ac9621c (diff)
downloadports-b554c4f8f5ff5e18ad8a546d027cea95cf792e1d.tar.gz
ports-b554c4f8f5ff5e18ad8a546d027cea95cf792e1d.zip
Notes
Diffstat (limited to 'devel/bullet')
-rw-r--r--devel/bullet/files/patch-src_BulletSoftBody_btSoftBodyInternals.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/devel/bullet/files/patch-src_BulletSoftBody_btSoftBodyInternals.h b/devel/bullet/files/patch-src_BulletSoftBody_btSoftBodyInternals.h
new file mode 100644
index 000000000000..330d769c54f4
--- /dev/null
+++ b/devel/bullet/files/patch-src_BulletSoftBody_btSoftBodyInternals.h
@@ -0,0 +1,20 @@
+--- src/BulletSoftBody/btSoftBodyInternals.h.orig 2009-08-31 04:35:06.000000000 +0000
++++ src/BulletSoftBody/btSoftBodyInternals.h
+@@ -25,6 +25,7 @@ subject to the following restrictions:
+ #include "BulletCollision/CollisionDispatch/btCollisionDispatcher.h"
+ #include "BulletCollision/CollisionShapes/btConvexInternalShape.h"
+ #include "BulletCollision/NarrowPhaseCollision/btGjkEpa2.h"
++#include <string.h>
+
+ //
+ // btSymMatrix
+@@ -172,8 +173,7 @@ public:
+ template <typename T>
+ static inline void ZeroInitialize(T& value)
+ {
+- static const T zerodummy;
+- value=zerodummy;
++ memset(&value, 0, sizeof(T));
+ }
+ //
+ template <typename T>