pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/games/netmaj "u_char" is not part of any standard, so ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/3bec6c1c0658
branches:  trunk
changeset: 539299:3bec6c1c0658
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Mon Mar 03 05:06:40 2008 +0000

description:
"u_char" is not part of any standard, so it's not safe to use in cui.c.
Define "u_char" to "unsigned char" in cui.c.  This should fix the the
problem reported by Klaus Heinz in the follow-up to PR pkg/29425.

diffstat:

 games/netmaj/distinfo         |   3 ++-
 games/netmaj/patches/patch-am |  15 +++++++++++++++
 2 files changed, 17 insertions(+), 1 deletions(-)

diffs (33 lines):

diff -r d86bd2875990 -r 3bec6c1c0658 games/netmaj/distinfo
--- a/games/netmaj/distinfo     Mon Mar 03 03:50:17 2008 +0000
+++ b/games/netmaj/distinfo     Mon Mar 03 05:06:40 2008 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.7 2008/02/29 20:53:02 jlam Exp $
+$NetBSD: distinfo,v 1.8 2008/03/03 05:06:40 jlam Exp $
 
 SHA1 (netmaj-2.0.7.tar.gz) = 1363ea8ca42079fb444b25c605d264b5f083e260
 RMD160 (netmaj-2.0.7.tar.gz) = 9d3fd68b7607b2c3064e9dd8310085818f32f93e
@@ -9,3 +9,4 @@
 SHA1 (patch-ai) = cd63f77bc8af0b6d2e3dc51ce260fc639bf48bb9
 SHA1 (patch-aj) = a25f2e0f81c10121767dae99bd6c09be69467a13
 SHA1 (patch-al) = 881d23913beedf4b3167b1fafd08210555cccd55
+SHA1 (patch-am) = 61da0c1ac3e73553aba80638a45df9bbda61ffb7
diff -r d86bd2875990 -r 3bec6c1c0658 games/netmaj/patches/patch-am
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/netmaj/patches/patch-am     Mon Mar 03 05:06:40 2008 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-am,v 1.1 2008/03/03 05:06:40 jlam Exp $
+
+--- cui.c.orig 1996-08-06 13:24:30.000000000 -0400
++++ cui.c
+@@ -207,6 +207,10 @@ int help_index;
+ int key_mac[100];
+ int key_mac_cnt=0;
+ 
++#ifndef u_char
++#define u_char unsigned char
++#endif
++
+ ungetstrx(str) unsigned char *str; {
+       int len;
+       int i;



Home | Main Index | Thread Index | Old Index