iproute2: replace musl-compilation-fix with upstream fix
[openwrt/openwrt.git] / package / network / utils / iproute2 / patches / 105-ipstats-Define-MIN-function-to-fix-undefined-referen.patch
diff --git a/package/network/utils/iproute2/patches/105-ipstats-Define-MIN-function-to-fix-undefined-referen.patch b/package/network/utils/iproute2/patches/105-ipstats-Define-MIN-function-to-fix-undefined-referen.patch
deleted file mode 100644 (file)
index 7bf55dd..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-From c69e8e474936795a2cd7638b11ce3e99ff4d5ae7 Mon Sep 17 00:00:00 2001
-From: Nick Hainke <vincent@systemli.org>
-Date: Sat, 6 Aug 2022 10:00:20 +0200
-Subject: [PATCH] ipstats: Define MIN function to fix undefined references
-
-Fixes errors in the form of:
- in function `ipstats_show_64':
- <artificial>:(.text+0x4e30): undefined reference to `MIN'
-
-Signed-off-by: Nick Hainke <vincent@systemli.org>
----
- ip/ipstats.c | 4 ++++
- 1 file changed, 4 insertions(+)
-
---- a/ip/ipstats.c
-+++ b/ip/ipstats.c
-@@ -6,6 +6,10 @@
- #include "utils.h"
- #include "ip_common.h"
-+#ifndef MIN
-+#define MIN(a, b) ((a) < (b) ? (a) : (b))
-+#endif
-+
- struct ipstats_stat_dump_filters {
-       /* mask[0] filters outer attributes. Then individual nests have their
-        * filtering mask at the index of the nested attribute.