numptyphysics: add patch to build it with gcc 4.3
authorKoen Kooi <koen@openembedded.org>
Fri, 8 Aug 2008 14:06:58 +0000 (14:06 +0000)
committerKoen Kooi <koen@openembedded.org>
Fri, 8 Aug 2008 14:06:58 +0000 (14:06 +0000)
packages/numptyphysics/numptyphysics/.mtn2git_empty [new file with mode: 0644]
packages/numptyphysics/numptyphysics/gcc43.diff [new file with mode: 0644]
packages/numptyphysics/numptyphysics_svn.bb

diff --git a/packages/numptyphysics/numptyphysics/.mtn2git_empty b/packages/numptyphysics/numptyphysics/.mtn2git_empty
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/packages/numptyphysics/numptyphysics/gcc43.diff b/packages/numptyphysics/numptyphysics/gcc43.diff
new file mode 100644 (file)
index 0000000..2658771
--- /dev/null
@@ -0,0 +1,50 @@
+--- /tmp/Common.h      2008-08-08 15:47:57.000000000 +0200
++++ trunk/Common.h     2008-08-08 15:48:08.403198000 +0200
+@@ -14,6 +14,7 @@
+  *
+  */
++#include <cstring>
+ #ifndef COMMON_H
+ #define COMMON_H
+--- /tmp/b2Body.h      2008-08-08 15:51:13.000000000 +0200
++++ trunk/Box2D/Source/Dynamics/b2Body.h       2008-08-08 15:52:26.583198000 +0200
+@@ -24,6 +24,7 @@
+ #include "../Collision/b2Shape.h"\r
\r
+ #include <memory>\r
++#include <cstring>\r
\r
+ class b2Joint;\r
+ class b2Contact;\r
+--- /tmp/b2BroadPhase.cpp      2008-08-08 15:53:43.000000000 +0200
++++ trunk/Box2D/Source/Collision/b2BroadPhase.cpp      2008-08-08 15:54:04.913198000 +0200
+@@ -18,6 +18,7 @@
\r
+ #include "b2BroadPhase.h"\r
+ #include <algorithm>\r
++#include <cstring>\r
\r
+ // Notes:\r
+ // - we use bound arrays instead of linked lists for cache coherence.\r
+--- /tmp/b2PolyContact.cpp     2008-08-08 15:55:01.000000000 +0200
++++ trunk/Box2D/Source/Dynamics/Contacts/b2PolyContact.cpp     2008-08-08 15:56:15.553198000 +0200
+@@ -21,6 +21,7 @@
\r
+ #include <memory>\r
+ #include <new>\r
++#include <cstring>\r
\r
+ b2Contact* b2PolyContact::Create(b2Shape* shape1, b2Shape* shape2, b2BlockAllocator* allocator)\r
+ {\r
+--- /tmp/b2BlockAllocator.cpp  2008-08-08 15:57:02.000000000 +0200
++++ trunk/Box2D/Source/Common/b2BlockAllocator.cpp     2008-08-08 15:57:35.833198000 +0200
+@@ -20,6 +20,7 @@
+ #include <cstdlib>\r
+ #include <memory>\r
+ #include <climits>\r
++#include <cstring>\r
\r
+ int32 b2BlockAllocator::s_blockSizes[b2_blockSizes] = \r
+ {\r
index d6b0e0f..6c833c2 100644 (file)
@@ -9,6 +9,7 @@ PV = "0.2+svnr${SRCREV}"
 SRC_URI = "\
   svn://garage.maemo.org/svn/${PN};module=trunk;proto=https \
   http://wwwpub.zih.tu-dresden.de/~mkluge/numptyphysics_setup.tgz \
+  file://gcc43.diff;patch=1 \
 "
 S = "${WORKDIR}/trunk"