From ab10f5c2f702dce3338412ac6e02351c56279a74 Mon Sep 17 00:00:00 2001 From: Jakub Jelen Date: Fri, 2 Aug 2024 10:29:54 +0200 Subject: [PATCH] match: Workaround matching on systems without IPv6 Signed-off-by: Jakub Jelen Reviewed-by: Andreas Schneider --- src/match.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/match.c b/src/match.c index f4ace268..2c004c98 100644 --- a/src/match.c +++ b/src/match.c @@ -46,6 +46,11 @@ #include #endif +/* for systems without IPv6 support matching should still work */ +#ifndef INET6_ADDRSTRLEN +#define INET6_ADDRSTRLEN 46 +#endif + #include "libssh/priv.h" #define MAX_MATCH_RECURSION 16