Source-Changes-HG archive

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

[src/trunk]: src/lib/libedit/readline kludge around CTRL redef.



details:   https://anonhg.NetBSD.org/src/rev/c3efb48c1fb7
branches:  trunk
changeset: 551984:c3efb48c1fb7
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Sep 15 01:29:36 2003 +0000

description:
kludge around CTRL redef.

diffstat:

 lib/libedit/readline/readline.h |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r fdee8c64cade -r c3efb48c1fb7 lib/libedit/readline/readline.h
--- a/lib/libedit/readline/readline.h   Mon Sep 15 00:33:35 2003 +0000
+++ b/lib/libedit/readline/readline.h   Mon Sep 15 01:29:36 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: readline.h,v 1.5 2003/09/14 22:15:23 christos Exp $    */
+/*     $NetBSD: readline.h,v 1.6 2003/09/15 01:29:36 christos Exp $    */
 
 /*-
  * Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -70,8 +70,11 @@
 #define control_character_bit          0x40
 
 #ifndef CTRL
+#include <sys/ioctl.h>
+#ifndef CTRL
 #define CTRL(c)                ((c) & 037)
 #endif
+#endif
 #ifndef UNCTRL
 #define UNCTRL(c)      (((c) - 'a' + 'A')|control_character_bit)
 #endif



Home | Main Index | Thread Index | Old Index