opkg

statically linked package installer
git clone anongit@rnpnr.xyz:opkg.git
Log | Files | Refs | Feed | Submodules | README | LICENSE

0001-Use-__fpurge-from-stdio_ext.h.patch (726B)


      1 From 9c2c3bd4d21bf5f55c2e8a41c8253d152f7ba2f5 Mon Sep 17 00:00:00 2001
      2 From: Michael Forney <mforney@mforney.org>
      3 Date: Sat, 29 May 2021 21:45:58 -0700
      4 Subject: [PATCH] Use __fpurge from stdio_ext.h
      5 
      6 ---
      7  lib/libcurses/tty.c | 3 ++-
      8  1 file changed, 2 insertions(+), 1 deletion(-)
      9 
     10 diff --git a/lib/libcurses/tty.c b/lib/libcurses/tty.c
     11 index b022ba6..b5e4506 100644
     12 --- a/lib/libcurses/tty.c
     13 +++ b/lib/libcurses/tty.c
     14 @@ -34,6 +34,7 @@
     15  #include <sys/types.h>
     16  
     17  #include <fcntl.h>
     18 +#include <stdio_ext.h>
     19  #include <stdlib.h>
     20  #include <termios.h>
     21  #include <unistd.h>
     22 @@ -597,7 +598,7 @@ int
     23  flushinp(void)
     24  {
     25  
     26 -	(void)fpurge(_cursesi_screen->infd);
     27 +	(void)__fpurge(_cursesi_screen->infd);
     28  	return OK;
     29  }
     30  
     31 -- 
     32 2.31.1
     33