From c0669926e328ccb9dac8900693bf20419e538b05 Mon Sep 17 00:00:00 2001 From: Yaksh Bariya Date: Mon, 21 Feb 2022 16:14:22 +0530 Subject: [PATCH] tinyfugue: fix builds --- packages/tinyfugue/build.sh | 1 + packages/tinyfugue/src-socket.c.patch | 10 ++++++++++ packages/tinyfugue/src-socket.h.patch | 11 +++++++++++ 3 files changed, 22 insertions(+) create mode 100644 packages/tinyfugue/src-socket.c.patch create mode 100644 packages/tinyfugue/src-socket.h.patch diff --git a/packages/tinyfugue/build.sh b/packages/tinyfugue/build.sh index 31d5210bf..fd75d70d7 100644 --- a/packages/tinyfugue/build.sh +++ b/packages/tinyfugue/build.sh @@ -3,6 +3,7 @@ TERMUX_PKG_DESCRIPTION="Flexible, screen-oriented MUD client, for use with any t TERMUX_PKG_LICENSE="GPL-2.0" TERMUX_PKG_MAINTAINER="@termux" TERMUX_PKG_VERSION=5.0b8 +TERMUX_PKG_REVISION=1 _COMMIT=854c76f33a4eda6cd64e0b7dc3e07e5de8bbfada TERMUX_PKG_SRCURL=https://github.com/Longlius/tinyfugue/archive/${_COMMIT}.zip TERMUX_PKG_SHA256=59579de448b7e892a2b4dbfa7a7db7859382a90ec2bd77ce50c515358253461d diff --git a/packages/tinyfugue/src-socket.c.patch b/packages/tinyfugue/src-socket.c.patch new file mode 100644 index 000000000..6cae04d46 --- /dev/null +++ b/packages/tinyfugue/src-socket.c.patch @@ -0,0 +1,10 @@ +--- ./src/socket.c.orig 2022-02-21 16:29:08.658684366 +0530 ++++ ./src/socket.c 2022-02-21 16:30:50.978684327 +0530 +@@ -460,6 +460,7 @@ + char mccp1_subneg[] = { TN_IAC, TN_SB, TN_COMPRESS, TN_WILL, TN_SE }; + #endif + ++struct World *world_decl; + Sock *xsock = NULL; /* current (transmission) socket */ + int quit_flag = FALSE; /* Are we all done? */ + int active_count = 0; /* # of (non-current) active sockets */ diff --git a/packages/tinyfugue/src-socket.h.patch b/packages/tinyfugue/src-socket.h.patch new file mode 100644 index 000000000..18361d0b6 --- /dev/null +++ b/packages/tinyfugue/src-socket.h.patch @@ -0,0 +1,11 @@ +--- ./src/socket.h.orig 2022-02-21 16:28:45.238684375 +0530 ++++ ./src/socket.h 2022-02-21 16:29:04.798684367 +0530 +@@ -21,7 +21,7 @@ + #define CONN_BG 0x08 + #define CONN_FG 0x10 + +-struct World *world_decl; /* declares struct World */ ++extern struct World *world_decl; /* declares struct World */ + + extern String *incoming_text; + extern int quit_flag;