aboutsummaryrefslogtreecommitdiffstats
path: root/testing/lshw/lshw-gcc43.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-09-15 09:09:34 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-09-15 09:10:06 +0000
commit1f2f5461925b211f1af1be504b35ae152f30a7e4 (patch)
tree89136ce6815ce1aed932681c2f7097ee6061ba11 /testing/lshw/lshw-gcc43.patch
parent52a7c9f48f175a358619c118b3130ae892d8e932 (diff)
downloadaports-1f2f5461925b211f1af1be504b35ae152f30a7e4.tar.bz2
aports-1f2f5461925b211f1af1be504b35ae152f30a7e4.tar.xz
testing/lshw: moved back to testing
Diffstat (limited to 'testing/lshw/lshw-gcc43.patch')
-rw-r--r--testing/lshw/lshw-gcc43.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/testing/lshw/lshw-gcc43.patch b/testing/lshw/lshw-gcc43.patch
new file mode 100644
index 0000000000..c56b03890b
--- /dev/null
+++ b/testing/lshw/lshw-gcc43.patch
@@ -0,0 +1,23 @@
+--- src/core/abi.cc.orig 2010-03-15 21:26:20.000000000 +0100
++++ src/core/abi.cc 2013-08-06 21:05:08.693772583 +0200
+@@ -11,6 +11,7 @@
+ #include <unistd.h>
+ #include <stdlib.h>
+ #include <dirent.h>
++#include <cstdlib>
+
+ __ID("@(#) $Id: mem.cc 1352 2006-05-27 23:54:13Z ezix $");
+
+@@ -38,10 +39,10 @@
+ for(i=0; i<n; i++)
+ {
+ system.addCapability(namelist[i]->d_name);
+- free(namelist[i]);
++ std::free(namelist[i]);
+ }
+ if(namelist)
+- free(namelist);
++ std::free(namelist);
+ }
+
+ popd();