master hovercats/oakiss / pkg / netbsd-curses / patch / 0001-Use-__fpurge-from-stdio_ext.h.patch
 1From 9c2c3bd4d21bf5f55c2e8a41c8253d152f7ba2f5 Mon Sep 17 00:00:00 2001
 2From: Michael Forney <mforney@mforney.org>
 3Date: Sat, 29 May 2021 21:45:58 -0700
 4Subject: [PATCH] Use __fpurge from stdio_ext.h
 5
 6---
 7 lib/libcurses/tty.c | 3 ++-
 8 1 file changed, 2 insertions(+), 1 deletion(-)
 9
10diff --git a/lib/libcurses/tty.c b/lib/libcurses/tty.c
11index 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-- 
322.31.1
33