diff options
| author | Dima Dorfman <dd@FreeBSD.org> | 2001-05-27 06:28:08 +0000 |
|---|---|---|
| committer | Dima Dorfman <dd@FreeBSD.org> | 2001-05-27 06:28:08 +0000 |
| commit | 50eb7c28e99427f7cd09b50ce59c92b2eb804b5d (patch) | |
| tree | 9ff0aab91fb263aea3fd78dae45b8dce5d58e87b /usr.sbin/kbdcontrol/kbdcontrol.c | |
| parent | 92d08a4dcf6cd15e45b174a00660c18e285adc25 (diff) | |
Notes
Diffstat (limited to 'usr.sbin/kbdcontrol/kbdcontrol.c')
| -rw-r--r-- | usr.sbin/kbdcontrol/kbdcontrol.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.sbin/kbdcontrol/kbdcontrol.c b/usr.sbin/kbdcontrol/kbdcontrol.c index 287b266ce01e5..577d91947cf5a 100644 --- a/usr.sbin/kbdcontrol/kbdcontrol.c +++ b/usr.sbin/kbdcontrol/kbdcontrol.c @@ -44,16 +44,12 @@ static const char rcsid[] = #include "lex.h" /* - * PASTE and CONS_CLRHIST are't defined in 4.x, but we need them to - * bridge to 5.0-current so define them here as a stop gap transition - * measure. + * PASTE isn't defined in 4.x, but we need it to bridge to 5.0-current + * so define it here as a stop gap transition measure. */ #ifndef PASTE #define PASTE 0xa3 /* paste from cut-paste buffer */ #endif -#ifndef CONS_CLRHIST -#define CONS_CLRHIST _IO('c', 10) -#endif char ctrl_names[32][4] = { "nul", "soh", "stx", "etx", "eot", "enq", "ack", "bel", @@ -988,8 +984,12 @@ void clear_history() { +#ifdef CONS_CLRHIST if (ioctl(0, CONS_CLRHIST) == -1) warn("clear history buffer"); +#else + warnx("clearing history not supported"); +#endif } static char |
