summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimothy Redaelli <drizzt@gentoo.org>2009-02-02 16:41:45 +0000
committerTimothy Redaelli <drizzt@gentoo.org>2009-02-02 16:41:45 +0000
commitfc67e111078afa3820a7ad1b427805623a33fb58 (patch)
tree728d3d9071dc393abc7511eae6d6bf7533a000bd /games-emulation/zsnes/files
parentVersion bump and fix for kernel 2.6.28 (diff)
downloadhistorical-fc67e111078afa3820a7ad1b427805623a33fb58.tar.gz
historical-fc67e111078afa3820a7ad1b427805623a33fb58.tar.bz2
historical-fc67e111078afa3820a7ad1b427805623a33fb58.zip
Fix a (possible) compilation problem wrt bug #170108
Package-Manager: portage-2.2_rc23/cvs/Linux x86_64
Diffstat (limited to 'games-emulation/zsnes/files')
-rw-r--r--games-emulation/zsnes/files/zsnes-1.51-depbuild.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/games-emulation/zsnes/files/zsnes-1.51-depbuild.patch b/games-emulation/zsnes/files/zsnes-1.51-depbuild.patch
new file mode 100644
index 000000000000..737d0c0100fb
--- /dev/null
+++ b/games-emulation/zsnes/files/zsnes-1.51-depbuild.patch
@@ -0,0 +1,24 @@
+--- src/tools/depbuild.cpp.orig 2006-12-27 12:04:05.000000000 +0100
++++ src/tools/depbuild.cpp 2009-02-02 17:24:17.980006252 +0100
+@@ -130,7 +130,20 @@
+ void dependency_calculate_asm(const char *filename)
+ {
+ string command = nasm + " " + nflags + " -M " + filename;
+- system(command.c_str());
++ FILE *fp = popen(command.c_str(), "r");
++ if (fp)
++ {
++ char line[256];
++ while (fgets(line, sizeof(line), fp)) //Process all lines of output
++ {
++ cout << line;
++ }
++ pclose(fp);
++ }
++ else
++ {
++ cerr << "Failed on: " << filename << "\n";
++ }
+ }
+
+ void dependency_calculate_psr(const char *filename)