Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -992,7 +992,8 @@ include <windows.h>
#include <sys/param.h>
#endif
]])
AC_CHECK_MEMBER([struct arpreq.arp_pa],[],[
AC_CHECK_HEADERS(sys/socket.h)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The problem here is that HAVE_SYS_SOCKET_H is not defined yet at that point, so it's skipped and the check fails.

I'm not sure how to fix it better like remove #if HAVE_SYS_SOCKET_H condition and let the header be included unconditionally, or include this header into some AC_CHECK_HEADERS a bit above, or something else. So please guide me how you wanted me this to do

I think what you did is the right solution for this PR -- it matches how similar code solves similar problems. There may be a better, more comprehensive solution, but I would place that outside this small/focused PR scope.

This comment answers a question without requesting any changes.

Copy link
Contributor

@yadij yadij Jan 7, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO the checks here should be including our compat/types.h and compat/socket.h instead of the system headers. But that will still need this change first (along with other headers tested). So I am putting that on my TODO list for later, no need to do it here.

Copy link
Contributor

@rousskov rousskov Jan 7, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO the checks here should be including our compat/types.h and compat/socket.h

I am against using compat/ sources in ./configure checks because that would imply that compat/ sources cannot reliably use ./configure results. However, there is now a better place for that discussion. Let's continue this conversation there.

AC_CHECK_MEMBER([struct arpreq.arp_ha.sa_family],[],[
AS_IF([test "x$squid_host_os" != "xmingw" -a "x$squid_host_os" != "xcygwin"],[
AC_MSG_NOTICE([OS support for EUI seems incomplete, disabling it])
enable_eui=no
Expand Down
Loading