]> git.ozlabs.org Git - ppp.git/commitdiff
Add configure check to see if we have struct sockaddr_ll
authorEivind Naess <eivnaes@yahoo.com>
Sun, 23 Apr 2023 18:30:43 +0000 (11:30 -0700)
committerEivind Naess <eivnaes@yahoo.com>
Sun, 23 Apr 2023 18:32:34 +0000 (11:32 -0700)
Fixes issue #411.

Signed-off-by: Eivind Naess <eivnaes@yahoo.com>
configure.ac
pppd/plugins/pppoe/config.h.in

index 1180f64ec0540807804e15fe0797dcf32f1393b2..38b24af92856812e041a233d92f4bee862e0693e 100644 (file)
@@ -75,7 +75,8 @@ AM_COND_IF([LINUX], [
         linux/if_ether.h        \
         linux/if_packet.h       \
         netinet/if_ether.h      \
-        netpacket/packet.h])])
+        netpacket/packet.h])
+    AC_CHECK_TYPES([struct sockaddr_ll], [], [], [#include <linux/if_packet.h>])])
 
 AC_CHECK_SIZEOF(unsigned int)
 AC_CHECK_SIZEOF(unsigned long)
index d447f5e891cb1e32714c335fc4916a3fd7ea578e..d7d61c01c0414e3fd10b43ec7f6e8c8e6770e110 100644 (file)
@@ -69,3 +69,5 @@
 /* The size of `unsigned short', as computed by sizeof. */
 #undef SIZEOF_UNSIGNED_SHORT
 
+/* Define to 1 if the system has the type `struct sockaddr_ll'. */
+#undef HAVE_STRUCT_SOCKADDR_LL