summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Walker <ka0ttic@gentoo.org>2005-08-25 14:53:29 +0000
committerAaron Walker <ka0ttic@gentoo.org>2005-08-25 14:53:29 +0000
commite6c6d33eb50f75cd0a660a1bf192f7507d4057a6 (patch)
treeb28da2684802ff1b65879ebd1cc35bf80bc308cd /app-admin/sysstat/files
parentstable on ia64 (diff)
downloadgentoo-2-e6c6d33eb50f75cd0a660a1bf192f7507d4057a6.tar.gz
gentoo-2-e6c6d33eb50f75cd0a660a1bf192f7507d4057a6.tar.bz2
gentoo-2-e6c6d33eb50f75cd0a660a1bf192f7507d4057a6.zip
Add missing gcc4 patch.
(Portage version: 1.589-cvs)
Diffstat (limited to 'app-admin/sysstat/files')
-rw-r--r--app-admin/sysstat/files/sysstat-5.0.5-gcc4.diff20
1 files changed, 20 insertions, 0 deletions
diff --git a/app-admin/sysstat/files/sysstat-5.0.5-gcc4.diff b/app-admin/sysstat/files/sysstat-5.0.5-gcc4.diff
new file mode 100644
index 000000000000..f852f0e790f9
--- /dev/null
+++ b/app-admin/sysstat/files/sysstat-5.0.5-gcc4.diff
@@ -0,0 +1,20 @@
+diff --exclude='*~' --exclude='.*' -I '$Id:' -urN sysstat-5.0.5.orig/sar.c sysstat-5.0.5/sar.c
+--- sysstat-5.0.5.orig/sar.c 2005-08-12 23:49:53.000000000 -0400
++++ sysstat-5.0.5/sar.c 2005-08-12 23:53:04.000000000 -0400
+@@ -2209,6 +2209,7 @@
+ int sa_read(void *buffer, int size)
+ {
+ int n;
++ char *buf = (char *)buffer;
+
+ while (size) {
+
+@@ -2221,7 +2222,7 @@
+ return 1; /* EOF */
+
+ size -= n;
+- (char *) buffer += n;
++ buf += n;
+ }
+
+ return 0;