bonnie++: Add a patch for gcc-4.3 (needs string.h)
authorTom Rini <trini@embeddedalley.com>
Wed, 4 Feb 2009 06:01:39 +0000 (01:01 -0500)
committerTom Rini <trini@embeddedalley.com>
Wed, 4 Feb 2009 06:01:39 +0000 (01:01 -0500)
packages/bonnie/bonnie++.inc
packages/bonnie/files/gcc-4.3-fixes.patch [new file with mode: 0644]

index dabe6dc..7e9d815 100644 (file)
@@ -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 (file)
index 0000000..cecf87e
--- /dev/null
@@ -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 <vector.h>
+ #endif
++#include <string.h>
+ // Read the specified number of megabytes of data from the fd and return the
+ // amount of time elapsed in seconds.