match: Workaround matching on systems without IPv6

Signed-off-by: Jakub Jelen <jjelen@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
Jakub Jelen
2024-08-02 10:29:54 +02:00
parent 9634668258
commit ab10f5c2f7

View File

@@ -46,6 +46,11 @@
#include <sys/socket.h>
#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