From 81b26a1540de0f12b4add569de399d5c1d79efe5 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Mon, 6 Jan 2025 18:27:05 -0800 Subject: [PATCH] tmate: fix compilation with GCC14 Need a define for strcasestr Signed-off-by: Rosen Penev --- net/tmate/Makefile | 2 +- net/tmate/patches/010-gcc14.patch | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 net/tmate/patches/010-gcc14.patch diff --git a/net/tmate/Makefile b/net/tmate/Makefile index ee3c0b588d..656c737d5c 100644 --- a/net/tmate/Makefile +++ b/net/tmate/Makefile @@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=tmate PKG_VERSION:=2.4.0 -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://codeload.github.com/tmate-io/tmate/tar.gz/$(PKG_VERSION)? diff --git a/net/tmate/patches/010-gcc14.patch b/net/tmate/patches/010-gcc14.patch new file mode 100644 index 0000000000..85bb26e0fc --- /dev/null +++ b/net/tmate/patches/010-gcc14.patch @@ -0,0 +1,13 @@ +--- a/tmux.c ++++ b/tmux.c +@@ -16,6 +16,10 @@ + * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + */ + ++#ifndef _GNU_SOURCE ++#define _GNU_SOURCE ++#endif ++ + #include + #include + -- 2.30.2