chiark / gitweb /
libgpg-error: workaround no stdout atexit with constructor prior to N (#1017)
[termux-packages] / packages / bvi / fix_errno.patch
1 --- bvi-1.4.0/bm_unix.c 2013-08-25 11:59:33.000000000 -0700
2 +++ src/bm_unix.c       2017-02-19 00:34:01.618869104 -0800
3 @@ -260,7 +260,6 @@
4  vgetc()
5  {
6      char cha;
7 -    extern int errno;
8  
9      errno = 0;
10      if (read(2, &cha, 1) <= 0) {
11 --- bvi-1.4.0/comm.c    2014-01-29 06:54:53.000000000 -0800
12 +++ src/comm.c  2017-02-19 00:34:01.622869129 -0800
13 @@ -84,7 +84,6 @@
14  extern char    *name;                  /* actual filename */
15  extern char    **files;                /* used for "next" and "rewind" */
16  extern int             numfiles, curfile;
17 -extern int             errno;
18  
19  static char    oldbuf[CMDSZ];          /** for :!! command **/
20