summaryrefslogtreecommitdiff
path: root/pkg/netbsd-curses/patch/0001-Use-__fpurge-from-stdio_ext.h.patch
blob: db9315ae1a1c421774b3fb50440f8bc477223a68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
From 9c2c3bd4d21bf5f55c2e8a41c8253d152f7ba2f5 Mon Sep 17 00:00:00 2001
From: Michael Forney <mforney@mforney.org>
Date: Sat, 29 May 2021 21:45:58 -0700
Subject: [PATCH] Use __fpurge from stdio_ext.h

---
 lib/libcurses/tty.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/libcurses/tty.c b/lib/libcurses/tty.c
index b022ba6..b5e4506 100644
--- a/lib/libcurses/tty.c
+++ b/lib/libcurses/tty.c
@@ -34,6 +34,7 @@
 #include <sys/types.h>
 
 #include <fcntl.h>
+#include <stdio_ext.h>
 #include <stdlib.h>
 #include <termios.h>
 #include <unistd.h>
@@ -597,7 +598,7 @@ int
 flushinp(void)
 {
 
-	(void)fpurge(_cursesi_screen->infd);
+	(void)__fpurge(_cursesi_screen->infd);
 	return OK;
 }
 
-- 
2.31.1