mirror of
https://github.com/termux/termux-packages.git
synced 2025-02-22 15:47:26 +00:00
Fixes "`error: incomplete definition of type 'struct _win_st'`" during
build.
Progress on https://github.com/termux/termux-packages/issues/21130
Copied and pasted from 05e22fdc66
`0005-aalib-m4.patch`: Fix --with-aalib-prefix argument
`0006-aalib-c99.patch`: Fix builtin-declaration-mismatch compiler warnings
`0007-aalib-free-offset-pointer.patch`: Fix free-nonheap-object compiler warning
`0008-aalib-key-down-OOB.patch`: Fix aggressive-loop-optimizations compiler warning
`0009-aalib-aalinuxkbd-return.patch`: Fix 'return' with no value compiler warning
`0010-aalib-opaque-ncurses-fix.patch`: Fix build for ncurses built with opaque-curses option
`0011-aalib-fix-aarender.patch`: Fix rendering with custom aspect ratio
`0012-aalib-mouse.patch`: Fix typo for KEY_MOUSE condition
24 lines
504 B
Diff
24 lines
504 B
Diff
diff -Naur a/src/aalinuxkbd.c b/src/aalinuxkbd.c
|
|
--- a/src/aalinuxkbd.c 2016-12-19 12:40:26.660039735 +0100
|
|
+++ b/src/aalinuxkbd.c 2016-12-19 12:42:21.692045971 +0100
|
|
@@ -114,6 +114,7 @@
|
|
static int vtswitch_allowed;
|
|
|
|
static char key_down[128];
|
|
+static size_t key_down_size = 128;
|
|
static int closed = 1;
|
|
static int mypid;
|
|
|
|
@@ -165,10 +166,7 @@
|
|
|
|
static void blank_key_down(void)
|
|
{
|
|
- int f;
|
|
-
|
|
- for (f = 0; f < NR_KEYS; f++)
|
|
- key_down[f] = 0;
|
|
+ memset(key_down, 0, key_down_size);
|
|
}
|
|
|
|
|