33 lines
925 B
Plaintext
33 lines
925 B
Plaintext
$NetBSD$
|
|
|
|
- need termios.h, our term.h does not include it
|
|
- t_insert_line and t_delete_line are macros in term.h; undef them
|
|
- spell HAVE_TERM_H correctly
|
|
|
|
--- src/console/conio.c.orig 2015-06-11 19:22:56.000000000 +0200
|
|
+++ src/console/conio.c 2015-06-11 19:24:43.000000000 +0200
|
|
@@ -55,11 +55,12 @@
|
|
|
|
#ifdef HAVE_CONIO
|
|
|
|
+#include <termios.h>
|
|
#include <curses.h>
|
|
#include <term.h>
|
|
|
|
#if defined(HAVE_SUN_OS)
|
|
-#if !defined(_TERM_H)
|
|
+#if !defined(HAVE_TERM_H)
|
|
extern "C" int tgetent(void *, const char *);
|
|
extern "C" int tgetnum(const char *);
|
|
extern "C" char *tgetstr (const char*, char**);
|
|
@@ -243,7 +244,9 @@
|
|
static char * getprev(void);
|
|
static void putline(char *newl, int newlen);
|
|
static void t_honk_horn(void);
|
|
+#undef t_insert_line
|
|
static void t_insert_line(void);
|
|
+#undef t_delete_line
|
|
static void t_delete_line(void);
|
|
static void t_clrline(int pos, int width);
|
|
void t_sendl(const char *msg, int len);
|