o We are not 4.3BSD so don't pretend

o Use modern curses routines if ncurses is in use
Fises PR 3225; OK pvalchev@
This commit is contained in:
millert 2003-06-16 21:37:17 +00:00
parent ee241c0ee1
commit e7c17f6332
2 changed files with 17 additions and 18 deletions

View File

@ -1,6 +1,6 @@
$OpenBSD: patch-Makefile,v 1.2 2002/08/06 00:45:17 pvalchev Exp $
$OpenBSD: patch-Makefile,v 1.3 2003/06/16 21:37:17 millert Exp $
--- Makefile.orig Mon Nov 5 17:37:05 2001
+++ Makefile Mon Aug 5 18:37:20 2002
+++ Makefile Mon Jun 16 15:31:29 2003
@@ -20,19 +20,19 @@ NAME=SC
# packaging this with an O/S, for example, you'll probably want to change
# this to /usr. Otherwise, /usr/local is probably more appropriate, unless
@ -45,19 +45,7 @@ $OpenBSD: patch-Makefile,v 1.2 2002/08/06 00:45:17 pvalchev Exp $
# MS-DOS needs y_tab instead of the normal y.tab
#YTAB=y_tab
@@ -227,9 +227,9 @@ LN=ln
#########################################
# Use this for BSD 4.3
-#CFLAGS= -O -DBSD43 #-O or -g
+CFLAGS += -DBSD43 #-O or -g
#LDFLAGS= # -lg might help if -g used in CFLAGS
-#LIB=-lm -lcurses -ltermcap
+LIB=-lm -lcurses -ltermcap
#########################################
# Use this for SunOS 4.X if you have the System V package installed.
@@ -299,13 +299,12 @@ LN=ln
@@ -299,13 +299,14 @@ LN=ln
#########################################
# Use this for Linux
@ -69,7 +57,9 @@ $OpenBSD: patch-Makefile,v 1.2 2002/08/06 00:45:17 pvalchev Exp $
#CFLAGS=-DSYSV3 -O2 -Wall -pipe
-CFLAGS=-DSYSV3 -O2 -pipe
-LIB=-lm -lncurses
+#LIB=-lm -lcurses
+#CFLAGS=-DSYSV3 -O2 -pipe
+#LIB=-lm -lncurses
+LIB=-lm -lcurses
# All of the source files
SRC=Makefile color.c cmds.c crypt.c eres.sed frame.c format.c gram.y help.c \

View File

@ -1,6 +1,6 @@
$OpenBSD: patch-lex_c,v 1.2 2002/08/06 00:45:17 pvalchev Exp $
$OpenBSD: patch-lex_c,v 1.3 2003/06/16 21:37:17 millert Exp $
--- lex.c.orig Mon Nov 5 17:40:12 2001
+++ lex.c Mon Aug 5 18:30:21 2002
+++ lex.c Mon Jun 16 15:25:30 2003
@@ -433,10 +433,10 @@ char dont_use[] = {
ctl('x'), ctl('z'), 0
};
@ -14,3 +14,12 @@ $OpenBSD: patch-lex_c,v 1.2 2002/08/06 00:45:17 pvalchev Exp $
}
void
@@ -592,7 +592,7 @@ nmgetch()
#endif
-#if defined(SYSV2) || defined(SYSV3) || defined(MSDOS)
+#if defined(SYSV2) || defined(SYSV3) || defined(MSDOS) || defined(NCURSES_VERSION)
void
initkbd()