Avoid compile-time warnings caused by redefinition of curses.h macros.

This commit is contained in:
bouyer 2000-04-21 08:52:48 +00:00
parent 591cc96593
commit c82529a737
2 changed files with 14 additions and 4 deletions

View file

@ -1,5 +1,5 @@
$NetBSD: patch-sum,v 1.3 2000/04/20 20:17:02 elric Exp $
$NetBSD: patch-sum,v 1.4 2000/04/21 08:52:48 bouyer Exp $
MD5 (patch-aa) = 28a04474addea2add1d4dcba6051fd6c
MD5 (patch-aa) = a31d0594546056807b99b3e3a6254ba2
MD5 (patch-ab) = 0e72f5a165347ec7905048af27ec943b
MD5 (patch-ac) = 852f5f59a5240936cefa79e94dde6fd3

View file

@ -1,4 +1,4 @@
$NetBSD: patch-aa,v 1.2 2000/04/20 07:06:30 itojun Exp $
$NetBSD: patch-aa,v 1.3 2000/04/21 08:52:49 bouyer Exp $
Index: common/constants.h
===================================================================
RCS file: /cvsroot/cscope/cscope/common/constants.h,v
@ -6,7 +6,17 @@ retrieving revision 1.1.1.1
diff -u -r1.1.1.1 constants.h
--- common/constants.h 2000/04/18 13:16:41 1.1.1.1
+++ common/constants.h 2000/04/20 06:59:58
@@ -135,11 +135,13 @@
@@ -127,19 +127,22 @@
#endif
#if !TERMINFO
+#ifndef __NetBSD__
#define KEY_BREAK 0400 /* easier to define than to add #if around the use */
#define KEY_ENTER 0401
#define KEY_BACKSPACE 0402
-
+#endif
#if !sun
#define cbreak() crmode() /* name change */
#endif