diff --git a/libdnet-stripped/configure b/libdnet-stripped/configure index 144c78577..baae3af1b 100755 --- a/libdnet-stripped/configure +++ b/libdnet-stripped/configure @@ -15219,7 +15219,7 @@ printf %s "checking for Linux PF_PACKET sockets... " >&6; } int main (void) { -int foo() { return ETH_P_ALL; } +int foo = ETH_P_ALL; ; return 0; } diff --git a/libdnet-stripped/m4/acinclude.m4 b/libdnet-stripped/m4/acinclude.m4 index 2b94702cf..c84674c2b 100644 --- a/libdnet-stripped/m4/acinclude.m4 +++ b/libdnet-stripped/m4/acinclude.m4 @@ -149,7 +149,7 @@ AC_DEFUN([AC_DNET_LINUX_PF_PACKET], [AC_MSG_CHECKING(for Linux PF_PACKET sockets) AC_TRY_COMPILE([#include #include ], - [int foo() { return ETH_P_ALL; }], + [int foo = ETH_P_ALL;], ac_cv_dnet_linux_pf_packet=yes, ac_cv_dnet_linux_pf_packet=no) AC_MSG_RESULT($ac_cv_dnet_linux_pf_packet)