summaryrefslogtreecommitdiff
path: root/devel/readline
diff options
context:
space:
mode:
authorsommerfe <sommerfe>1999-02-23 18:56:59 +0000
committersommerfe <sommerfe>1999-02-23 18:56:59 +0000
commitc1d423138596561d9903c75cb5acbd6a9bb95c50 (patch)
treea6d0cf226a0a194e8be2c70d299d35e74dc0f118 /devel/readline
parentc7d54a30a38d1e67ae4f22c8620db820a62a0b11 (diff)
downloadpkgsrc-c1d423138596561d9903c75cb5acbd6a9bb95c50.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/readline')
-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)