From 50492ad591594288603131b23c3bbcc4c425da86 Mon Sep 17 00:00:00 2001 From: Tom Rini Date: Wed, 4 Feb 2009 01:01:39 -0500 Subject: bonnie++: Add a patch for gcc-4.3 (needs string.h) --- packages/bonnie/bonnie++.inc | 3 ++- packages/bonnie/files/gcc-4.3-fixes.patch | 16 ++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 packages/bonnie/files/gcc-4.3-fixes.patch diff --git a/packages/bonnie/bonnie++.inc b/packages/bonnie/bonnie++.inc index dabe6dc1f7..7e9d81579c 100644 --- a/packages/bonnie/bonnie++.inc +++ b/packages/bonnie/bonnie++.inc @@ -6,7 +6,8 @@ DESCRIPTION="Tests large file IO and creation/deletion of small files." LICENSE="GPL" -SRC_URI="http://www.coker.com.au/bonnie++/${PN}-${PV}.tgz" +SRC_URI="http://www.coker.com.au/bonnie++/${PN}-${PV}.tgz \ + file://gcc-4.3-fixes.patch;patch=1" inherit autotools diff --git a/packages/bonnie/files/gcc-4.3-fixes.patch b/packages/bonnie/files/gcc-4.3-fixes.patch new file mode 100644 index 0000000000..cecf87e05a --- /dev/null +++ b/packages/bonnie/files/gcc-4.3-fixes.patch @@ -0,0 +1,16 @@ +--- + zcav.cpp | 1 + + 1 file changed, 1 insertion(+) + +Index: bonnie++-1.03a/zcav.cpp +=================================================================== +--- bonnie++-1.03a.orig/zcav.cpp ++++ bonnie++-1.03a/zcav.cpp +@@ -15,6 +15,7 @@ using namespace std; + #else + #include + #endif ++#include + + // Read the specified number of megabytes of data from the fd and return the + // amount of time elapsed in seconds. -- cgit v1.2.3