tmate: fix compilation with GCC14
authorRosen Penev <rosenp@gmail.com>
Tue, 7 Jan 2025 02:27:05 +0000 (18:27 -0800)
committerRosen Penev <rosenp@gmail.com>
Tue, 7 Jan 2025 03:22:49 +0000 (19:22 -0800)
Need a define for strcasestr

Signed-off-by: Rosen Penev <rosenp@gmail.com>
net/tmate/Makefile
net/tmate/patches/010-gcc14.patch [new file with mode: 0644]

index ee3c0b588d3aa4821c7e292012ed28a109773ab3..656c737d5c87130fda04143c9b2a4092579f8933 100644 (file)
@@ -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 (file)
index 0000000..85bb26e
--- /dev/null
@@ -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 <sys/types.h>
+ #include <sys/stat.h>