From b0ea1b6cdf7393cf800b1ca64280779e591bddd0 Mon Sep 17 00:00:00 2001 From: Jonas Lochmann Date: Mon, 16 Feb 2026 01:00:00 +0100 Subject: [PATCH] iproute2: include upstream patch for musl libc Due to a missing include, the constant UINT_MAX is undefined. This fixes issues when building v25.12.0-rc5. Including a newer version of iproute2 would include the patch, but causes other building issues. Signed-off-by: Jonas Lochmann Link: https://github.com/openwrt/openwrt/pull/22128 Signed-off-by: Hauke Mehrtens (cherry picked from commit 5f063d18bdc368cb3eede54b01557f000b3df3b6) --- ...undeclared-with-build-with-musl-libc.patch | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 package/network/utils/iproute2/patches/301-fix-UINT_MAX-undeclared-with-build-with-musl-libc.patch diff --git a/package/network/utils/iproute2/patches/301-fix-UINT_MAX-undeclared-with-build-with-musl-libc.patch b/package/network/utils/iproute2/patches/301-fix-UINT_MAX-undeclared-with-build-with-musl-libc.patch new file mode 100644 index 0000000000..18a5dd0763 --- /dev/null +++ b/package/network/utils/iproute2/patches/301-fix-UINT_MAX-undeclared-with-build-with-musl-libc.patch @@ -0,0 +1,34 @@ +From 6c1113633fde51b0e60f02243cfad1b3d09762cc Mon Sep 17 00:00:00 2001 +From: Akhilesh Nema +Date: Tue, 2 Dec 2025 18:11:24 -0800 +Subject: [PATCH] fix 'UINT_MAX' undeclared with build with musl libc + +- utils_math.c:136:20: error: 'UINT_MAX' undeclared (first use in this function) +- tc_core.c:51:22: error: 'UINT_MAX' undeclared (first use in this function) + +Signed-off-by: Akhilesh Nema +--- + lib/utils_math.c | 1 + + tc/tc_core.c | 1 + + 2 files changed, 2 insertions(+) + +--- a/lib/utils_math.c ++++ b/lib/utils_math.c +@@ -4,6 +4,7 @@ + #include + #include + #include ++#include + #include + + #include "utils.h" +--- a/tc/tc_core.c ++++ b/tc/tc_core.c +@@ -11,6 +11,7 @@ + #include + #include + #include ++#include + #include + #include + #include