blob: e4c0cf4aa545d5b54074c1330c8119d615c9d9c9 [file] [log] [blame]
Andrew Geissler595f6302022-01-24 19:11:47 +00001From 8bced38a941a181f1468fa39541e872e51b6022f Mon Sep 17 00:00:00 2001
2From: Sam James <sam@gentoo.org>
3Date: Thu, 13 Jan 2022 08:14:13 +0000
4Subject: [PATCH] lib: fix ax25.h include for musl
5
6ax25.h isn't guaranteed to be avilable in netax25/*;
7it's dependent on our choice of libc (it's not available
8on musl at least) [0].
9
10Let's use the version from linux-headers.
11
12[0] https://sourceware.org/glibc/wiki/Synchronizing_Headers
13Bug: https://bugs.gentoo.org/831102
14
15Signed-off-by: Sam James <sam@gentoo.org>
16Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
17
18Upstream-Status: Backport [https://git.kernel.org/pub/scm/network/iproute2/iproute2.git/commit/?id=8bced38a941a181f1468fa39541e872e51b6022f]
19---
20 lib/ax25_ntop.c | 2 +-
21 1 file changed, 1 insertion(+), 1 deletion(-)
22
23diff --git a/lib/ax25_ntop.c b/lib/ax25_ntop.c
24index cfd0e04b..3a72a43e 100644
25--- a/lib/ax25_ntop.c
26+++ b/lib/ax25_ntop.c
27@@ -2,7 +2,7 @@
28
29 #include <errno.h>
30 #include <sys/socket.h>
31-#include <netax25/ax25.h>
32+#include <linux/ax25.h>
33
34 #include "utils.h"
35
36--
372.32.0 (Apple Git-132)