Skip to content

Commit 177bb6a

Browse files
timp87squid-anubis
authored andcommitted
Fix ./configure EUI check (#2338)
Fix missing header `sys/socket.h`: configure:29217: checking for struct arpreq.arp_pa .../net/if_arp.h: error: field has incomplete type 'struct sockaddr' Fix `ac_aggr.arp_pa` test, replacing it with a test of a data member that Squid code is actually using: conftest.cpp:112:5: error: value of type 'struct sockaddr' is not contextually convertible to 'bool' Discovered while porting Squid v7 to FreeBSD.
1 parent a3f00ea commit 177bb6a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

configure.ac

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -991,7 +991,8 @@ include <windows.h>
991991
#include <sys/param.h>
992992
#endif
993993
]])
994-
AC_CHECK_MEMBER([struct arpreq.arp_pa],[],[
994+
AC_CHECK_HEADERS(sys/socket.h)
995+
AC_CHECK_MEMBER([struct arpreq.arp_ha.sa_family],[],[
995996
AS_IF([test "x$squid_host_os" != "xmingw" -a "x$squid_host_os" != "xcygwin"],[
996997
AC_MSG_NOTICE([OS support for EUI seems incomplete, disabling it])
997998
enable_eui=no

0 commit comments

Comments
 (0)