]> git.pld-linux.org Git - packages/beav.git/blob - beav-linux.patch
- dropped pre-cvs changelog
[packages/beav.git] / beav-linux.patch
1 --- beav-1.40/def.h.msf Mon Apr 28 17:20:42 1997
2 +++ beav-1.40/def.h     Mon Apr 28 17:23:37 1997
3 @@ -560,9 +560,14 @@
4  /*
5   * Standard I/O.
6   */
7 +#ifndef linux
8  extern char *malloc ();
9  extern char *strcpy ();
10  extern char *strcat ();
11 +#else
12 +#include <stdio.h>
13 +#include <string.h>
14 +#endif
15  
16  #ifndef NOPROTO
17  #include "prototyp.h"
18 --- beav-1.40/prototyp.h.msf    Mon Apr 28 17:23:58 1997
19 +++ beav-1.40/prototyp.h        Mon Apr 28 17:24:42 1997
20 @@ -55,9 +55,11 @@
21  extern void update (void);
22  extern unsigned int get_currow (struct WINDOW *wp);
23  extern unsigned int get_curcol (struct WINDOW *wp);
24 +#ifndef linux
25  extern void mem_line (int row, struct vid *vvp);
26  extern void ucopy (struct vid *vvp, struct vid *pvp);
27  extern void uline (int row, struct vid *vvp, struct vid *pvp);
28 +#endif
29  extern void modeline (struct WINDOW *wp);
30  extern void writ_echo (char *buf);
31  extern char print (void);
32 @@ -203,7 +205,9 @@
33  extern void ttykeymapinit (void);
34  extern char *keystrings (int key);
35  extern void is_wang (void);
36 +#ifndef linux
37  extern int getsysconfig (union REGS *outregs, struct SREGS *segregs);
38 +#endif
39  extern char getscreenstate (void);
40  extern char reposition (void);
41  extern char nextwind (void);
42 --- beav-1.40/tcap.c.orig       Fri Apr 16 13:29:48 1993
43 +++ beav-1.40/tcap.c    Mon Apr 28 17:31:28 1997
44 @@ -36,6 +36,11 @@
45  char tcapbuf[TCAPSLEN];
46  char *UP, PC, *CM, *CE, *CL, *SO, *SE, *TI, *TE;       /* DR */
47  
48 +#ifdef linux
49 +#include <termios.h>
50 +struct winsize ttysize;
51 +#endif
52 +
53  #ifdef BSD
54  #include <sys/ioctl.h>
55  struct winsize ttysize;
56 @@ -84,6 +89,14 @@
57         exit (1);
58      }
59  
60 +#ifdef linux
61 +    if (ioctl (0, TIOCGWINSZ, &ttysize) == 0
62 +        && ttysize.ws_row > 0) {
63 +            nrow = ttysize.ws_row;
64 +            ncol = ttysize.ws_col;
65 +    }
66 +    else
67 +#endif
68  
69  #ifdef BSD
70  #ifdef ULTRIX
71 @@ -110,7 +123,7 @@
72         ttclose ();             /* fix in 1.13 */
73         exit (1);
74      }
75 -    printf ("nrow %d, ncol %d\n", nrow, ncol);
76 +    /* printf ("nrow %d, ncol %d\n", nrow, ncol); */
77  
78      if ((ncol = (short) tgetnum ("co")) == -1)
79      {
This page took 0.036896 seconds and 3 git commands to generate.