diff options
author | joerg <joerg@pkgsrc.org> | 2012-05-04 20:13:48 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2012-05-04 20:13:48 +0000 |
commit | 5b640ef9aab5c5333fe10a595084e8eb6916d06b (patch) | |
tree | 8773e3fc867226d32ac3b727024c6f98779d963d /x11/9term | |
parent | ea4f02cb7c70900c049044d09b3247808def966b (diff) | |
download | pkgsrc-5b640ef9aab5c5333fe10a595084e8eb6916d06b.tar.gz |
Add forgotten patches.
Diffstat (limited to 'x11/9term')
-rw-r--r-- | x11/9term/patches/patch-libtext_text.c | 23 | ||||
-rw-r--r-- | x11/9term/patches/patch-libtext_text.h | 11 |
2 files changed, 34 insertions, 0 deletions
diff --git a/x11/9term/patches/patch-libtext_text.c b/x11/9term/patches/patch-libtext_text.c new file mode 100644 index 00000000000..ac0ff592e67 --- /dev/null +++ b/x11/9term/patches/patch-libtext_text.c @@ -0,0 +1,23 @@ +$NetBSD: patch-libtext_text.c,v 1.1 2012/05/04 20:13:48 joerg Exp $ + +--- libtext/text.c.orig 1994-12-15 15:01:45.000000000 +0000 ++++ libtext/text.c +@@ -4,7 +4,10 @@ + #include <frame.h> + #include <text.h> + ++#ifndef MAX + #define MAX(x, y) ((x > y) ? x : y) ++#endif ++ + #define BUTTON(n) (1<<(n-1)) + + static Menu edit; +@@ -47,6 +50,7 @@ textalloc(Bitmap *b, Rectangle r, Font * + berror("textalloc: calloc"); + t->length = 0; + t->base = 0; ++ t->end = 0; + t->p0 = 0; + t->p1 = 0; + t->pout = 0; diff --git a/x11/9term/patches/patch-libtext_text.h b/x11/9term/patches/patch-libtext_text.h new file mode 100644 index 00000000000..6c3ef1f4030 --- /dev/null +++ b/x11/9term/patches/patch-libtext_text.h @@ -0,0 +1,11 @@ +$NetBSD: patch-libtext_text.h,v 1.1 2012/05/04 20:13:48 joerg Exp $ + +--- libtext/text.h.orig 2012-04-28 21:27:52.000000000 +0000 ++++ libtext/text.h +@@ -87,5 +87,6 @@ ulong _backnl(Text *, long, ulong); + + ulong texttoutf(char *, Rune *, Rune *); + ulong utftotext(Rune *, char *, char *); ++int alnum(int); + + #endif |