summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorsommerfe <sommerfe@pkgsrc.org>1999-02-23 18:56:59 +0000
committersommerfe <sommerfe@pkgsrc.org>1999-02-23 18:56:59 +0000
commit4d54e8c85dfaf3a606041aecad5362661ec6a72e (patch)
treea6d0cf226a0a194e8be2c70d299d35e74dc0f118 /devel
parent3ed2fed843738ae6c5bab13a085f4ce1d9785b1c (diff)
downloadpkgsrc-4d54e8c85dfaf3a606041aecad5362661ec6a72e.tar.gz
Fix for arm (and anywhere else chars are unsigned by default)
(should not cause problems on systems with signed chars.)
Diffstat (limited to 'devel')
-rw-r--r--devel/readline/patches/patch-ah13
1 files changed, 13 insertions, 0 deletions
diff --git a/devel/readline/patches/patch-ah b/devel/readline/patches/patch-ah
new file mode 100644
index 00000000000..0f8cb5102e0
--- /dev/null
+++ b/devel/readline/patches/patch-ah
@@ -0,0 +1,13 @@
+$NetBSD: patch-ah,v 1.1 1999/02/23 18:56:59 sommerfe Exp $
+
+--- chardefs.h.~1~ Thu Sep 25 10:59:00 1997
++++ chardefs.h Tue Feb 23 13:47:23 1999
+@@ -51,7 +51,7 @@
+ #define meta_character_bit 0x080 /* x0000000, must be on. */
+ #define largest_char 255 /* Largest character value. */
+
+-#define CTRL_CHAR(c) ((c) < control_character_threshold && (c) >= 0)
++#define CTRL_CHAR(c) (((unsigned)(c)) < control_character_threshold)
+ #define META_CHAR(c) ((c) > meta_character_threshold && (c) <= largest_char)
+
+ #define CTRL(c) ((c) & control_character_mask)