summaryrefslogtreecommitdiff
path: root/sys-apps/iproute2/files/iproute2-5.16.0-fix-ax25.h-include-for-musl.patch
blob: 28307131a3db9d8844f528a2e22203f827fa2fa1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
https://marc.info/?l=linux-netdev&m=164206157726666&w=2

From: Sam James <sam@gentoo.org>
Date: Thu, 13 Jan 2022 08:05:33 +0000
Subject: [PATCH] Fix ax25.h include for musl

ax25.h isn't guaranteed to be avilable in netax25/*;
it's dependent on our choice of libc (it's not available
on musl at least) [0].

Let's use the version from linux-headers.

[0] https://sourceware.org/glibc/wiki/Synchronizing_Headers
Bug: https://bugs.gentoo.org/831102
--- a/lib/ax25_ntop.c
+++ b/lib/ax25_ntop.c
@@ -2,7 +2,7 @@
 
 #include <errno.h>
 #include <sys/socket.h>
-#include <netax25/ax25.h>
+#include <linux/ax25.h>
 
 #include "utils.h"