From 5ee19bab4d8386e29b7b42a6762ddc32987ab3f7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Arkadiusz=20Mi=C5=9Bkiewicz?= Date: Wed, 6 Sep 2000 13:14:44 +0000 Subject: [PATCH] 387714d487d849596d468d691b2337a5 vcd-1.5.tar.gz 6b1c9c98225757c26f91083b233da0ff liveice.tar.gz 21ebeb1c2fb04ca9ef6dbae842cc1687 beav140s.zip Changed files: beav-glibc.patch -> 1.1 beav-linux.patch -> 1.1 beav-tinfo.patch -> 1.1 --- beav-glibc.patch | 11 +++++++ beav-linux.patch | 79 ++++++++++++++++++++++++++++++++++++++++++++++++ beav-tinfo.patch | 11 +++++++ 3 files changed, 101 insertions(+) create mode 100644 beav-glibc.patch create mode 100644 beav-linux.patch create mode 100644 beav-tinfo.patch diff --git a/beav-glibc.patch b/beav-glibc.patch new file mode 100644 index 0000000..d2da825 --- /dev/null +++ b/beav-glibc.patch @@ -0,0 +1,11 @@ +--- beav-1.40/tcap.c.glibc Wed Nov 26 14:01:28 1997 ++++ beav-1.40/tcap.c Wed Nov 26 14:01:38 1997 +@@ -37,7 +37,7 @@ + char *UP, PC, *CM, *CE, *CL, *SO, *SE, *TI, *TE; /* DR */ + + #ifdef linux +-#include ++#include + struct winsize ttysize; + #endif + diff --git a/beav-linux.patch b/beav-linux.patch new file mode 100644 index 0000000..3b7889b --- /dev/null +++ b/beav-linux.patch @@ -0,0 +1,79 @@ +--- beav-1.40/def.h.msf Mon Apr 28 17:20:42 1997 ++++ beav-1.40/def.h Mon Apr 28 17:23:37 1997 +@@ -560,9 +560,14 @@ + /* + * Standard I/O. + */ ++#ifndef linux + extern char *malloc (); + extern char *strcpy (); + extern char *strcat (); ++#else ++#include ++#include ++#endif + + #ifndef NOPROTO + #include "prototyp.h" +--- beav-1.40/prototyp.h.msf Mon Apr 28 17:23:58 1997 ++++ beav-1.40/prototyp.h Mon Apr 28 17:24:42 1997 +@@ -55,9 +55,11 @@ + extern void update (void); + extern unsigned int get_currow (struct WINDOW *wp); + extern unsigned int get_curcol (struct WINDOW *wp); ++#ifndef linux + extern void mem_line (int row, struct vid *vvp); + extern void ucopy (struct vid *vvp, struct vid *pvp); + extern void uline (int row, struct vid *vvp, struct vid *pvp); ++#endif + extern void modeline (struct WINDOW *wp); + extern void writ_echo (char *buf); + extern char print (void); +@@ -203,7 +205,9 @@ + extern void ttykeymapinit (void); + extern char *keystrings (int key); + extern void is_wang (void); ++#ifndef linux + extern int getsysconfig (union REGS *outregs, struct SREGS *segregs); ++#endif + extern char getscreenstate (void); + extern char reposition (void); + extern char nextwind (void); +--- beav-1.40/tcap.c.orig Fri Apr 16 13:29:48 1993 ++++ beav-1.40/tcap.c Mon Apr 28 17:31:28 1997 +@@ -36,6 +36,11 @@ + char tcapbuf[TCAPSLEN]; + char *UP, PC, *CM, *CE, *CL, *SO, *SE, *TI, *TE; /* DR */ + ++#ifdef linux ++#include ++struct winsize ttysize; ++#endif ++ + #ifdef BSD + #include + struct winsize ttysize; +@@ -84,6 +89,14 @@ + exit (1); + } + ++#ifdef linux ++ if (ioctl (0, TIOCGWINSZ, &ttysize) == 0 ++ && ttysize.ws_row > 0) { ++ nrow = ttysize.ws_row; ++ ncol = ttysize.ws_col; ++ } ++ else ++#endif + + #ifdef BSD + #ifdef ULTRIX +@@ -110,7 +123,7 @@ + ttclose (); /* fix in 1.13 */ + exit (1); + } +- printf ("nrow %d, ncol %d\n", nrow, ncol); ++ /* printf ("nrow %d, ncol %d\n", nrow, ncol); */ + + if ((ncol = (short) tgetnum ("co")) == -1) + { diff --git a/beav-tinfo.patch b/beav-tinfo.patch new file mode 100644 index 0000000..7305d10 --- /dev/null +++ b/beav-tinfo.patch @@ -0,0 +1,11 @@ +diff -urN beav-1.40.org/makefile.uxv beav-1.40/makefile.uxv +--- beav-1.40.org/makefile.uxv Tue Sep 5 00:13:41 2000 ++++ beav-1.40/makefile.uxv Tue Sep 5 00:13:56 2000 +@@ -15,6 +15,6 @@ + HFILES= def.h + + beav: $(OFILES) +- $(CC) $(CFLAGS) $(OFILES) -ltermcap -lc -o beav ++ $(CC) $(CFLAGS) $(OFILES) -ltinfo -lc -o beav + + (OFILES): $(HFILES) -- 2.43.0