Skip to content

Commit

Permalink
Fix for failure to detect the presence of sockaddr_ll in linux/if_pac…
Browse files Browse the repository at this point in the history
…ket.h (#456)

Signed-off-by: Eivind Næss <[email protected]>
  • Loading branch information
enaess authored Nov 8, 2023
1 parent 9b4bdca commit f19193e
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,16 @@ AM_COND_IF([LINUX], [
linux/if_packet.h \
netinet/if_ether.h \
netpacket/packet.h])
AC_CHECK_TYPES([struct sockaddr_ll], [], [], [#include <linux/if_packet.h>])])
AC_MSG_CHECKING([for struct sockaddr_ll in <linux/if_packet.h>])
AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM([@%:@include <linux/if_packet.h>], [sizeof(struct sockaddr_ll)])],
[AC_MSG_RESULT([yes])
AC_DEFINE(HAVE_STRUCT_SOCKADDR_LL, 1, [Struct sockaddr_ll is present on system])
],
AC_MSG_RESULT([no]))
])


AC_CHECK_SIZEOF(unsigned int)
AC_CHECK_SIZEOF(unsigned long)
Expand Down

0 comments on commit f19193e

Please sign in to comment.