summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Ostorga <vostorga@gentoo.org>2009-07-07 18:07:27 +0000
committerVictor Ostorga <vostorga@gentoo.org>2009-07-07 18:07:27 +0000
commitc4f8f5d6aa6c127aedc7d900f8ac6d3e56b7023a (patch)
tree7970154b48553cf81067c96d822dca7771b097ef /dev-libs/mpatrol/files
parentImport from Science overlay (diff)
downloadgentoo-2-c4f8f5d6aa6c127aedc7d900f8ac6d3e56b7023a.tar.gz
gentoo-2-c4f8f5d6aa6c127aedc7d900f8ac6d3e56b7023a.tar.bz2
gentoo-2-c4f8f5d6aa6c127aedc7d900f8ac6d3e56b7023a.zip
Patch to build against glibc-2.10 thanks to Ryan Hill <dirtyepic@gentoo.org> bug #272505. Fix to doc path bug #241972
(Portage version: 2.1.6.13/cvs/Linux i686)
Diffstat (limited to 'dev-libs/mpatrol/files')
-rw-r--r--dev-libs/mpatrol/files/mpatrol-1.4.8-gcc44-glibc210.patch54
1 files changed, 54 insertions, 0 deletions
diff --git a/dev-libs/mpatrol/files/mpatrol-1.4.8-gcc44-glibc210.patch b/dev-libs/mpatrol/files/mpatrol-1.4.8-gcc44-glibc210.patch
new file mode 100644
index 000000000000..8fe9315d8370
--- /dev/null
+++ b/dev-libs/mpatrol/files/mpatrol-1.4.8-gcc44-glibc210.patch
@@ -0,0 +1,54 @@
+https://bugs.gentoo.org/272505
+
+--- mpatrol-orig/src/mptrace.c
++++ mpatrol/src/mptrace.c
+@@ -268,27 +268,27 @@
+ static XtResource resources[] =
+ {
+ {"alloc", XmCColor, XmRPixel, sizeof(Pixel),
+- (Cardinal) &alcol, XmRString, (XtPointer) "black"},
++ (long) &alcol, XmRString, (XtPointer) "black"},
+ {"base", "Base", XmRInt, sizeof(void *),
+- (Cardinal) &addrbase, XmRImmediate, (XtPointer) NULL},
++ (long) &addrbase, XmRImmediate, (XtPointer) NULL},
+ {"delay", "Delay", XmRInt, sizeof(unsigned long),
+- (Cardinal) &delay, XmRImmediate, (XtPointer) 0},
++ (long) &delay, XmRImmediate, (XtPointer) 0},
+ {"free", XmCColor, XmRPixel, sizeof(Pixel),
+- (Cardinal) &frcol, XmRString, (XtPointer) "white"},
++ (long) &frcol, XmRString, (XtPointer) "white"},
+ {"height", XmCHeight, XmRShort, sizeof(Dimension),
+- (Cardinal) &height, XmRImmediate, (XtPointer) 512},
++ (long) &height, XmRImmediate, (XtPointer) 512},
+ {"internal", XmCColor, XmRPixel, sizeof(Pixel),
+- (Cardinal) &incol, XmRString, (XtPointer) "red"},
++ (long) &incol, XmRString, (XtPointer) "red"},
+ {"space", "Space", XmRInt, sizeof(unsigned long),
+- (Cardinal) &addrspace, XmRImmediate, (XtPointer) 4},
++ (long) &addrspace, XmRImmediate, (XtPointer) 4},
+ {"unalloc", XmCColor, XmRPixel, sizeof(Pixel),
+- (Cardinal) &uncol, XmRString, (XtPointer) "blue"},
++ (long) &uncol, XmRString, (XtPointer) "blue"},
+ {"view-height", XmCHeight, XmRShort, sizeof(Dimension),
+- (Cardinal) &vheight, XmRImmediate, (XtPointer) 256},
++ (long) &vheight, XmRImmediate, (XtPointer) 256},
+ {"view-width", XmCWidth, XmRShort, sizeof(Dimension),
+- (Cardinal) &vwidth, XmRImmediate, (XtPointer) 256},
++ (long) &vwidth, XmRImmediate, (XtPointer) 256},
+ {"width", XmCWidth, XmRShort, sizeof(Dimension),
+- (Cardinal) &width, XmRImmediate, (XtPointer) 512}
++ (long) &width, XmRImmediate, (XtPointer) 512}
+ };
+
+
+--- mpatrol-orig/tools/dmalloc.c
++++ mpatrol/tools/dmalloc.c
+@@ -395,7 +395,7 @@
+ char *
+ bytestring(char *b, size_t s, char *p, size_t l)
+ {
+- char *t;
++ const char *t;
+ size_t i, n;
+
+ for (i = n = 0; (i < s) && (i < l); i++)