logo

oasis

Own branch of Oasis Linux (upstream: <https://git.sr.ht/~mcf/oasis/>) git clone https://anongit.hacktivis.me/git/oasis.git

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. lib/libcurses/tty.c | 3 ++-
  7. 1 file changed, 2 insertions(+), 1 deletion(-)
  8. diff --git a/lib/libcurses/tty.c b/lib/libcurses/tty.c
  9. index b022ba6..b5e4506 100644
  10. --- a/lib/libcurses/tty.c
  11. +++ b/lib/libcurses/tty.c
  12. @@ -34,6 +34,7 @@
  13. #include <sys/types.h>
  14. #include <fcntl.h>
  15. +#include <stdio_ext.h>
  16. #include <stdlib.h>
  17. #include <termios.h>
  18. #include <unistd.h>
  19. @@ -597,7 +598,7 @@ int
  20. flushinp(void)
  21. {
  22. - (void)fpurge(_cursesi_screen->infd);
  23. + (void)__fpurge(_cursesi_screen->infd);
  24. return OK;
  25. }
  26. --
  27. 2.31.1