Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 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] 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 | Upstream-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 | |
| 23 | diff --git a/lib/ax25_ntop.c b/lib/ax25_ntop.c |
| 24 | index 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 | -- |
| 37 | 2.32.0 (Apple Git-132) |