0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-02-22 16:57:09 +00:00
termux-packages/packages/aalib/0009-aalib-aalinuxkbd-return.patch
Robert Kirkman ab0141c44e fix(main/aalib): update patches to match Arch Linux (#21894)
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
2024-12-18 03:46:11 +01:00

13 lines
384 B
Diff

diff -Nur aalib-1.4.0-orig/src/aalinuxkbd.c aalib-1.4.0/src/aalinuxkbd.c
--- aalib-1.4.0-orig/src/aalinuxkbd.c 2001-04-26 16:37:31.000000000 +0200
+++ aalib-1.4.0/src/aalinuxkbd.c 2005-07-01 22:57:59.000000000 +0200
@@ -200,7 +200,7 @@
static int rawmode_init(void)
{
if (!closed)
- return;
+ return 1;
mypid = getpid();
if (tty_fd == -1) {
tty_fd = fileno(stdin);