gatling: fix compilation with GCC14

Headers are missing.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev
2024-10-31 17:13:17 -07:00
parent 4d8c6d1869
commit 78a88fa736
2 changed files with 31 additions and 1 deletions

View 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/

View File

@@ -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>