Files
LibreELEC.tv/packages/x11/lib/xtrans/patches/xtrans-23-is_numeric-Add-defined-IPv6-to-checks.patch

32 lines
986 B
Diff

From c4207a952484ae1e128da75c87d0a7defba8cdb4 Mon Sep 17 00:00:00 2001
From: Alan Coopersmith <alan.coopersmith@oracle.com>
Date: Tue, 22 Oct 2024 14:44:46 -0700
Subject: [PATCH] is_numeric: Add !defined(IPv6) to checks
Fixes builds without IPv6 support, since old IPv4 code uses is_numeric()
Closes: #6
Fixes: 0f15306 ("is_numeric: Add TRANS_SERVER to required ifdefs")
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
---
Xtranssock.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/Xtranssock.c b/Xtranssock.c
index c9823bd..a313b46 100644
--- a/Xtranssock.c
+++ b/Xtranssock.c
@@ -196,7 +196,8 @@ static Sockettrans2dev Sockettrans2devtab[] = {
static int TRANS(SocketINETClose) (XtransConnInfo ciptr);
#endif
-#if (defined(TCPCONN) && defined(TRANS_SERVER)) || defined(TRANS_REOPEN)
+#if (defined(TCPCONN) && defined(TRANS_SERVER)) || defined(TRANS_REOPEN) || \
+ !defined(IPv6)
static int
is_numeric (const char *str)
{
--
GitLab