Skip to content

Commit

Permalink
Fix for failure to detect the presence of struct sockaddr_ll in linux…
Browse files Browse the repository at this point in the history
…/if_packet.h
  • Loading branch information
enaess committed Nov 6, 2023
1 parent a68681d commit e056d6b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,15 @@ 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 e056d6b

Please sign in to comment.