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
commitceb415d0384ee545f66a5c6346f6debd0e7d4ee6 (patch)
tree70b8d5b5195c98c33aba72d6f79da17f21f242c3 /games-emulation/zsnes/files
parentVersion bump and fix for kernel 2.6.28 (diff)
downloadgentoo-2-ceb415d0384ee545f66a5c6346f6debd0e7d4ee6.tar.gz
gentoo-2-ceb415d0384ee545f66a5c6346f6debd0e7d4ee6.tar.bz2
gentoo-2-ceb415d0384ee545f66a5c6346f6debd0e7d4ee6.zip
Fix a (possible) compilation problem wrt bug #170108
(Portage version: 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)