iproute2: update to 5.16.0
[openwrt/staging/xback.git] / package / network / utils / iproute2 / patches / 0001-lib-fix-ax25.h-include-for-musl.patch
1 From 8bced38a941a181f1468fa39541e872e51b6022f Mon Sep 17 00:00:00 2001
2 From: Sam James <sam@gentoo.org>
3 Date: Thu, 13 Jan 2022 08:14:13 +0000
4 Subject: [PATCH 1/1] lib: fix ax25.h include for musl
5
6 ax25.h isn't guaranteed to be avilable in netax25/*;
7 it's dependent on our choice of libc (it's not available
8 on musl at least) [0].
9
10 Let's use the version from linux-headers.
11
12 [0] https://sourceware.org/glibc/wiki/Synchronizing_Headers
13 Bug: https://bugs.gentoo.org/831102
14
15 Signed-off-by: Sam James <sam@gentoo.org>
16 Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
17 ---
18 lib/ax25_ntop.c | 2 +-
19 1 file changed, 1 insertion(+), 1 deletion(-)
20
21 --- a/lib/ax25_ntop.c
22 +++ b/lib/ax25_ntop.c
23 @@ -2,7 +2,7 @@
24
25 #include <errno.h>
26 #include <sys/socket.h>
27 -#include <netax25/ax25.h>
28 +#include <linux/ax25.h>
29
30 #include "utils.h"
31