summaryrefslogtreecommitdiffstats
path: root/lib/libmytinfo
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1994-10-10 00:32:19 +0000
committerache <ache@FreeBSD.org>1994-10-10 00:32:19 +0000
commit65559b8e063b4cc7fc002bda3929cf9ff26d7f74 (patch)
treecca0741c56933635d24f4f05fed1f171fb1026ff /lib/libmytinfo
parent795d4ea248d97cf09e27411da05951d2c686a091 (diff)
downloadFreeBSD-src-65559b8e063b4cc7fc002bda3929cf9ff26d7f74.zip
FreeBSD-src-65559b8e063b4cc7fc002bda3929cf9ff26d7f74.tar.gz
Merge term.h and nterm.h
Diffstat (limited to 'lib/libmytinfo')
-rw-r--r--lib/libmytinfo/Makefile12
-rw-r--r--lib/libmytinfo/term.h6
-rw-r--r--lib/libmytinfo/term.tail6
3 files changed, 19 insertions, 5 deletions
diff --git a/lib/libmytinfo/Makefile b/lib/libmytinfo/Makefile
index 71541d0..0164542 100644
--- a/lib/libmytinfo/Makefile
+++ b/lib/libmytinfo/Makefile
@@ -1,7 +1,7 @@
# Makefile for libmytinfo
# Use 'make update_term_h' manually after changing internal
# mytinfo structures
-# $Id: Makefile,v 1.3 1994/10/09 17:50:50 ache Exp $
+# $Id: Makefile,v 1.4 1994/10/09 18:38:59 ache Exp $
LIB= mytinfo
SRCS= addstr.c binorder.c buildpath.c caplist.c capsort.c compar.c\
@@ -18,10 +18,12 @@ CAPS= 1000
update_term_h: ${.CURDIR}/term.h
beforeinstall:
- -cmp -s ${.CURDIR}/term.h ${DESTDIR}/usr/include/term.h > \
- /dev/null 2>&1 || \
- $(INSTALL) $(COPY) -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/term.h \
- ${DESTDIR}/usr/include
+ -cmp -s ${.CURDIR}/term.h ${DESTDIR}/usr/include/term.h && \
+ cmp -s ${.CURDIR}/term.h ${DESTDIR}/usr/include/nterm.h || \
+ ( $(INSTALL) $(COPY) -o ${BINOWN} -g ${BINGRP} -m 444 \
+ ${.CURDIR}/term.h ${DESTDIR}/usr/include; \
+ rm -f ${DESTDIR}/usr/include/nterm.h; \
+ ln ${DESTDIR}/usr/include/term.h ${DESTDIR}/usr/include/nterm.h )
capsort.c: mkcapsort
./mkcapsort > capsort.c
diff --git a/lib/libmytinfo/term.h b/lib/libmytinfo/term.h
index 8386a9f..a7b2704 100644
--- a/lib/libmytinfo/term.h
+++ b/lib/libmytinfo/term.h
@@ -655,4 +655,10 @@ extern char *strnames[], *strcodes[], *strfnames[];
#define ERR (-1)
#endif
+/* Compatibility */
+#define Filedes fd
+#define Ottyb shell_mode
+#define Nttyb prog_mode
+#define TTY struct termios
+
#endif /* _TERM_H_ */
diff --git a/lib/libmytinfo/term.tail b/lib/libmytinfo/term.tail
index bba7264..6036557 100644
--- a/lib/libmytinfo/term.tail
+++ b/lib/libmytinfo/term.tail
@@ -128,4 +128,10 @@ extern char *strnames[], *strcodes[], *strfnames[];
#define ERR (-1)
#endif
+/* Compatibility */
+#define Filedes fd
+#define Ottyb shell_mode
+#define Nttyb prog_mode
+#define TTY struct termios
+
#endif /* _TERM_H_ */
OpenPOWER on IntegriCloud