summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-admin/sysstat/files/sysstat-5.0.5-gcc4.diff')
-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;