mirror of
https://github.com/nmap/nmap.git
synced 2026-11-20 08:40:36 +08:00
Fix check for PF_PACKET, fails with clang
This commit is contained in:
Vendored
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
@@ -149,7 +149,7 @@ AC_DEFUN([AC_DNET_LINUX_PF_PACKET],
|
||||
[AC_MSG_CHECKING(for Linux PF_PACKET sockets)
|
||||
AC_TRY_COMPILE([#include <netpacket/packet.h>
|
||||
#include <linux/if_ether.h>],
|
||||
[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)
|
||||
|
||||
Reference in New Issue
Block a user