commit: d0be1841c349cb0e132483f3448fb02e4479aa8c Author: Haelwenn (lanodan) Monnier <contact <AT> hacktivis <DOT> me> AuthorDate: Fri Feb 2 17:13:35 2024 +0000 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> CommitDate: Wed Feb 28 07:01:47 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d0be1841
net-misc/tinyssh: C99 compatibility Closes: https://bugs.gentoo.org/923493 Signed-off-by: Haelwenn (lanodan) Monnier <contact <AT> hacktivis.me> Closes: https://github.com/gentoo/gentoo/pull/35150 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> net-misc/tinyssh/files/tinyssh-20240101_c99.patch | 33 +++++++++++++++++++++++ net-misc/tinyssh/tinyssh-20240101.ebuild | 1 + 2 files changed, 34 insertions(+) diff --git a/net-misc/tinyssh/files/tinyssh-20240101_c99.patch b/net-misc/tinyssh/files/tinyssh-20240101_c99.patch new file mode 100644 index 000000000000..38b2e845eaa5 --- /dev/null +++ b/net-misc/tinyssh/files/tinyssh-20240101_c99.patch @@ -0,0 +1,33 @@ +From ae059fda00c11236a32499f105e803f962d1e243 Mon Sep 17 00:00:00 2001 +From: "Haelwenn (lanodan) Monnier" <[email protected]> +Date: Tue, 9 Jan 2024 19:51:14 +0100 +Subject: [PATCH] packet_put: Add missing bug.h include for global_die + +``` +packet_put.c:53:9: error: call to undeclared function 'global_die'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] + global_die(111); + ^ +1 error generated. +``` + +Upstream: https://github.com/janmojzis/tinyssh/pull/84 + +--- + tinyssh/packet_put.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/tinyssh/packet_put.c b/tinyssh/packet_put.c +index 17e8d84..7f46ff6 100644 +--- a/tinyssh/packet_put.c ++++ b/tinyssh/packet_put.c +@@ -6,6 +6,7 @@ Public domain. + + #include "uint32_pack_big.h" + #include "buf.h" ++#include "bug.h" + #include "sshcrypto.h" + #include "ssh.h" + #include "log.h" +-- +2.41.0 + diff --git a/net-misc/tinyssh/tinyssh-20240101.ebuild b/net-misc/tinyssh/tinyssh-20240101.ebuild index 0edea200702b..442fb8e5f171 100644 --- a/net-misc/tinyssh/tinyssh-20240101.ebuild +++ b/net-misc/tinyssh/tinyssh-20240101.ebuild @@ -29,6 +29,7 @@ RDEPEND=" " PATCHES=( + "${FILESDIR}/tinyssh-20240101_c99.patch" "${FILESDIR}/tinyssh-20240101_conf_cflags.patch" )
