gatling: fix compilation with GCC14
authorRosen Penev <rosenp@gmail.com>
Fri, 1 Nov 2024 00:13:17 +0000 (17:13 -0700)
committerRosen Penev <rosenp@gmail.com>
Sun, 10 Nov 2024 18:06:41 +0000 (10:06 -0800)
Headers are missing.

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

index 5b64daa9d582f9f52412dbf66fb53aef1faf5b3f..c6c1f75448750dd5e9525274d27160a31cb97f92 100644 (file)
@@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=gatling
 PKG_VERSION:=0.16
-PKG_RELEASE:=2
+PKG_RELEASE:=3
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
 PKG_SOURCE_URL:=https://www.fefe.de/gatling/
diff --git a/net/gatling/patches/040-gcc14.patch b/net/gatling/patches/040-gcc14.patch
new file mode 100644 (file)
index 0000000..9624e30
--- /dev/null
@@ -0,0 +1,30 @@
+--- a/common.c
++++ b/common.c
+@@ -9,6 +9,7 @@
+ #include <libowfat/ip6.h>
+ #include <libowfat/fmt.h>
++#include <alloca.h>
+ #include <stdlib.h>
+ #include <fcntl.h>
+ #include <unistd.h>
+--- a/ftp.c
++++ b/ftp.c
+@@ -21,6 +21,7 @@
+ #include <time.h>
+ #include <dirent.h>
+ #include <fnmatch.h>
++#include <alloca.h>
+ #include <assert.h>
+ #include "havealloca.h"
+--- a/pssl.c
++++ b/pssl.c
+@@ -2,6 +2,7 @@
+ #include <string.h>
+ #include <stdio.h>
+ #include <stdlib.h>
++#include <sys/uio.h>
+ #include <sys/socket.h>
+ #include <sys/poll.h>
+ #include <netdb.h>