diff options
author | jlam <jlam@pkgsrc.org> | 2008-03-03 05:06:40 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2008-03-03 05:06:40 +0000 |
commit | af331e4c128b3a1ff8f2fb55f2c9b592ec70edf4 (patch) | |
tree | f7d1f25eb514190cc71d15624cc2d8789d689366 /games | |
parent | 54d7dc3f23a9ba9c0012bc8840a84e28a3add396 (diff) | |
download | pkgsrc-af331e4c128b3a1ff8f2fb55f2c9b592ec70edf4.tar.gz |
"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 (limited to 'games')
-rw-r--r-- | games/netmaj/distinfo | 3 | ||||
-rw-r--r-- | games/netmaj/patches/patch-am | 15 |
2 files changed, 17 insertions, 1 deletions
diff --git a/games/netmaj/distinfo b/games/netmaj/distinfo index ba32fc2f34f..777923d283a 100644 --- a/games/netmaj/distinfo +++ b/games/netmaj/distinfo @@ -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-ah) = d2ad2b03dd7171418eba9617549081cd89982b96 SHA1 (patch-ai) = cd63f77bc8af0b6d2e3dc51ce260fc639bf48bb9 SHA1 (patch-aj) = a25f2e0f81c10121767dae99bd6c09be69467a13 SHA1 (patch-al) = 881d23913beedf4b3167b1fafd08210555cccd55 +SHA1 (patch-am) = 61da0c1ac3e73553aba80638a45df9bbda61ffb7 diff --git a/games/netmaj/patches/patch-am b/games/netmaj/patches/patch-am new file mode 100644 index 00000000000..8216e1341e1 --- /dev/null +++ b/games/netmaj/patches/patch-am @@ -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; |