diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-01-30 17:49:05 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-01-30 17:49:05 +0000 |
commit | 28d8acbb30a9ebda81447e5e3f5210a438ba7d24 (patch) | |
tree | 6d6b6b0a1aca19e8118845870c9e6a25bad27963 /net-vpn/openconnect/files | |
parent | 840a65e2af3f2cc7527e723a28f6e627a9592fb7 (diff) |
gentoo auto-resync : 30:01:2024 - 17:49:05
Diffstat (limited to 'net-vpn/openconnect/files')
-rw-r--r-- | net-vpn/openconnect/files/openconnect-9.12-stdlib.patch | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/net-vpn/openconnect/files/openconnect-9.12-stdlib.patch b/net-vpn/openconnect/files/openconnect-9.12-stdlib.patch new file mode 100644 index 000000000000..6e8ce06a8bef --- /dev/null +++ b/net-vpn/openconnect/files/openconnect-9.12-stdlib.patch @@ -0,0 +1,37 @@ +https://gitlab.com/openconnect/openconnect/-/merge_requests/533 + +From 5f59c2efa27295d6b3675a8b750357a6e883c45d Mon Sep 17 00:00:00 2001 +From: Brahmajit Das <brahmajit.xyz@gmail.com> +Date: Mon, 29 Jan 2024 23:28:53 +0530 +Subject: [PATCH] Fix implicit declaration of function 'malloc' + +First observed on Gentoo Linux with GCC 14. This is due to GCC 14 +enabling -Werror=implicit-function-declaration by default. +Thus resulting in errors such as: + +openconnect-internal.h: In function 'alloc_pkt': +openconnect-internal.h:911:27: error: implicit declaration of function 'malloc' [-Werror=implicit-function-declaration] + 911 | struct pkt *pkt = malloc(alloc_len); + | ^~~~~~ + +Plese refer gentoo bug: https://bugs.gentoo.org/923173 +Signed-off-by: Brahmajit Das <brahmajit.xyz@gmail.com> +--- + openconnect-internal.h | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/openconnect-internal.h b/openconnect-internal.h +index 21460adf..5abfe98d 100644 +--- a/openconnect-internal.h ++++ b/openconnect-internal.h +@@ -119,6 +119,7 @@ + #include <sys/types.h> + + #include <stdint.h> ++#include <stdlib.h> + #include <string.h> + #include <errno.h> + +-- +2.43.0 + |