logo

oasis

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

0005-Don-t-rely-on-internal-struct-tags-of-curses-impleme.patch (884B)


  1. From 64ade1a9e9f511ca5f8c8273481e307a184ada44 Mon Sep 17 00:00:00 2001
  2. From: Michael Forney <mforney@mforney.org>
  3. Date: Sun, 13 Mar 2022 15:17:58 -0700
  4. Subject: [PATCH] Don't rely on internal struct tags of curses implementation
  5. ---
  6. chat.h | 7 ++++---
  7. 1 file changed, 4 insertions(+), 3 deletions(-)
  8. diff --git a/chat.h b/chat.h
  9. index 2a41cf6..66fe661 100644
  10. --- a/chat.h
  11. +++ b/chat.h
  12. @@ -27,6 +27,7 @@
  13. #include <assert.h>
  14. #include <ctype.h>
  15. +#include <curses.h>
  16. #include <err.h>
  17. #include <getopt.h>
  18. #include <stdarg.h>
  19. @@ -321,9 +322,9 @@ enum {
  20. InputCols = 1024,
  21. };
  22. extern char uiTitle[TitleCap];
  23. -extern struct _win_st *uiStatus;
  24. -extern struct _win_st *uiMain;
  25. -extern struct _win_st *uiInput;
  26. +extern WINDOW *uiStatus;
  27. +extern WINDOW *uiMain;
  28. +extern WINDOW *uiInput;
  29. extern bool uiSpoilerReveal;
  30. extern struct Util uiNotifyUtil;
  31. void uiInit(void);
  32. --
  33. 2.49.0