summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-util/injectso/files/injectso-0.2-gcc4.patch')
-rw-r--r--dev-util/injectso/files/injectso-0.2-gcc4.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/dev-util/injectso/files/injectso-0.2-gcc4.patch b/dev-util/injectso/files/injectso-0.2-gcc4.patch
new file mode 100644
index 000000000000..f814d961f624
--- /dev/null
+++ b/dev-util/injectso/files/injectso-0.2-gcc4.patch
@@ -0,0 +1,32 @@
+diff -x 'config*' -ur /var/tmp/portage/dev-util/injectso-0.2/work/injectso-0.2/procdbg.c /tmp/injectso-0.2/procdbg.c
+--- a/injectso-0.2/procdbg.c 2002-07-13 06:06:00.000000000 +0100
++++ b/injectso-0.2/procdbg.c 2006-12-17 22:20:59.000000000 +0000
+@@ -146,7 +146,7 @@
+
+ /* Now subtract the amount of space we need for the */
+ /* data to be pushed */
+- (unsigned long) pvEsp -= iSize;
++ pvEsp -= (unsigned long) iSize;
+
+ /* Round it to a multiple of 8 (if it isn't already) */
+ /* (We use 8 since Sparc requires double word alignment) */
+@@ -241,7 +241,7 @@
+ ptProcStatus->regs.eax = EINTR;
+ } else {
+ show_debug(3, "Restoring EIP to retry\n");
+- (unsigned long) ptProcStatus->regs.eip = (unsigned long) ptProcStatus->regs.eip - 2;
++ ptProcStatus->regs.eip = (unsigned long) ptProcStatus->regs.eip - 2;
+ ptProcStatus->regs.eax = ptProcStatus->regs.orig_eax;
+ }
+ }
+diff -x 'config*' -ur /var/tmp/portage/dev-util/injectso-0.2/work/injectso-0.2/readargs.c /tmp/injectso-0.2/readargs.c
+--- a/injectso-0.2/readargs.c 2002-06-30 10:45:47.000000000 +0100
++++ b/injectso-0.2/readargs.c 2006-12-17 22:19:54.000000000 +0000
+@@ -115,7 +115,6 @@
+ }
+ iError = 1;
+ break;
+- default:
+ }
+ }
+