Lakka-LibreELEC/packages/devel/ncurses/patches/ncurses-003-fix_hints.patch
mglae 4fa3e0ef44 ncurses: build ncursesw for UTF-8 support
- update to 6.3
- Update patches 001 (terminfo xterm) and 002 (alloc fallback)
- add patch 003: fix USE_SCROLL_HINTS/USE_HASHMAP logic
- add patch 004: fix configure option --with-pkg-config-libdir is broken for
  cross compilation
- Add symbolic links of ncursesw to common ncurses lib and header files to allow
  all packages to be build.
2021-12-05 12:19:05 +01:00

19 lines
473 B
Diff

Fix USE_SCROLL_HINTS/USE_HASHMAP logic
--- a/ncurses/curses.priv.h 2018-12-16 02:16:58.000000000 +0100
+++ a/ncurses/curses.priv.h 2021-05-30 00:12:14.086528124 +0200
@@ -258,10 +258,9 @@ extern NCURSES_EXPORT(void *) _nc_memmov
/*
* Scroll hints are useless when hashmap is used
*/
-#if !USE_SCROLL_HINTS
-#if !USE_HASHMAP
-#define USE_SCROLL_HINTS 1
-#else
+#if USE_SCROLL_HINTS
+#if USE_HASHMAP
+#undef USE_SCROLL_HINTS
#define USE_SCROLL_HINTS 0
#endif
#endif