forked from coolsnowwolf/lede
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
iproute2: replace musl-compilation-fix with upstream fix
Instead of defining the MIN version it is enough to include "#include <sys/param.h>". Delete patch: - 105-ipstats-Define-MIN-function-to-fix-undefined-referen.patch Add patch: - 010-ipstats-Add-param.h-for-musl.patch Signed-off-by: Nick Hainke <vincent@systemli.org>
- Loading branch information
1 parent
af8d136
commit b8edb76
Showing
2 changed files
with
23 additions
and
27 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
package/network/utils/iproute2/patches/010-ipstats-Add-param.h-for-musl.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
From cf6b60c504d4be5e1df2b2745e55d677967831d0 Mon Sep 17 00:00:00 2001 | ||
From: Changhyeok Bae <changhyeok.bae@gmail.com> | ||
Date: Tue, 9 Aug 2022 04:01:05 +0000 | ||
Subject: [PATCH 1/5] ipstats: Add param.h for musl | ||
|
||
Fix build error for musl | ||
| /usr/src/debug/iproute2/5.19.0-r0/iproute2-5.19.0/ip/ipstats.c:231: undefined reference to `MIN' | ||
|
||
Signed-off-by: Changhyeok Bae <changhyeok.bae@gmail.com> | ||
--- | ||
ip/ipstats.c | 1 + | ||
1 file changed, 1 insertion(+) | ||
|
||
--- a/ip/ipstats.c | ||
+++ b/ip/ipstats.c | ||
@@ -1,6 +1,7 @@ | ||
// SPDX-License-Identifier: GPL-2.0+ | ||
#include <assert.h> | ||
#include <errno.h> | ||
+#include <sys/param.h> | ||
|
||
#include "list.h" | ||
#include "utils.h" |
27 changes: 0 additions & 27 deletions
27
...ork/utils/iproute2/patches/105-ipstats-Define-MIN-function-to-fix-undefined-referen.patch
This file was deleted.
Oops, something went wrong.