]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - src/patches/ppp/ppp-2.5.0-7-add-configure-check-to-see-if-we-have-struct-sockaddr_ll.patch
a7823d424917289103f1d5f448f1a5168e2cb6f8
[people/pmueller/ipfire-2.x.git] / src / patches / ppp / ppp-2.5.0-7-add-configure-check-to-see-if-we-have-struct-sockaddr_ll.patch
1 From 9d6d326b2530cffb1414e4c401675117c42d43ce Mon Sep 17 00:00:00 2001
2 From: Eivind Naess <eivnaes@yahoo.com>
3 Date: Sun, 23 Apr 2023 11:30:43 -0700
4 Subject: [PATCH] Add configure check to see if we have struct sockaddr_ll
5
6 Fixes issue #411.
7
8 Signed-off-by: Eivind Naess <eivnaes@yahoo.com>
9 ---
10 configure.ac | 3 ++-
11 pppd/plugins/pppoe/config.h.in | 2 ++
12 2 files changed, 4 insertions(+), 1 deletion(-)
13
14 diff --git a/configure.ac b/configure.ac
15 index 1180f64ec..38b24af92 100644
16 --- a/configure.ac
17 +++ b/configure.ac
18 @@ -75,7 +75,8 @@ AM_COND_IF([LINUX], [
19 linux/if_ether.h \
20 linux/if_packet.h \
21 netinet/if_ether.h \
22 - netpacket/packet.h])])
23 + netpacket/packet.h])
24 + AC_CHECK_TYPES([struct sockaddr_ll], [], [], [#include <linux/if_packet.h>])])
25
26 AC_CHECK_SIZEOF(unsigned int)
27 AC_CHECK_SIZEOF(unsigned long)
28 diff --git a/pppd/plugins/pppoe/config.h.in b/pppd/plugins/pppoe/config.h.in
29 index d447f5e89..d7d61c01c 100644
30 --- a/pppd/plugins/pppoe/config.h.in
31 +++ b/pppd/plugins/pppoe/config.h.in
32 @@ -69,3 +69,5 @@
33 /* The size of `unsigned short', as computed by sizeof. */
34 #undef SIZEOF_UNSIGNED_SHORT
35
36 +/* Define to 1 if the system has the type `struct sockaddr_ll'. */
37 +#undef HAVE_STRUCT_SOCKADDR_LL