Skip to content

Commit

Permalink
Merge branch 'maint'
Browse files Browse the repository at this point in the history
  • Loading branch information
bmk committed Jul 23, 2024
2 parents 9ff030b + 2d11368 commit 64fcd87
Show file tree
Hide file tree
Showing 17 changed files with 1,687 additions and 315 deletions.
3 changes: 3 additions & 0 deletions erts/config.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@
/* Socket address dl length */
#undef ESOCK_SDL_LEN

/* Interface hwaddr supported */
#undef ESOCK_USE_ENADDR

/* Use extended error info */
#undef ESOCK_USE_EXTENDED_ERROR_INFO

Expand Down
17 changes: 17 additions & 0 deletions erts/configure
Original file line number Diff line number Diff line change
Expand Up @@ -16659,6 +16659,23 @@ printf "%s\n" "#define ESOCK_USE_HWADDR /**/" >>confdefs.h
fi


ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_enaddr" "ac_cv_member_struct_ifreq_ifr_enaddr" "#ifdef __WIN32__
#else
#include <net/if.h>
#endif

"
if test "x$ac_cv_member_struct_ifreq_ifr_enaddr" = xyes
then :

printf "%s\n" "#define HAVE_STRUCT_IFREQ_IFR_ENADDR 1" >>confdefs.h


printf "%s\n" "#define ESOCK_USE_ENADDR /**/" >>confdefs.h

fi


ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_ifindex" "ac_cv_member_struct_ifreq_ifr_ifindex" "#ifdef __WIN32__
#else
#include <net/if.h>
Expand Down
9 changes: 9 additions & 0 deletions erts/configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -1446,6 +1446,15 @@ AC_CHECK_MEMBERS([struct ifreq.ifr_hwaddr],
#endif
])

AC_CHECK_MEMBERS([struct ifreq.ifr_enaddr],
[AC_DEFINE(ESOCK_USE_ENADDR, [], [Interface hwaddr supported])],
[],
[#ifdef __WIN32__
#else
#include <net/if.h>
#endif
])

AC_CHECK_MEMBERS([struct ifreq.ifr_ifindex],
[AC_DEFINE(ESOCK_USE_IFINDEX, [], [Interface ifindex supported])],
[],
Expand Down
Loading

0 comments on commit 64fcd87

Please sign in to comment.