Dear all,
the top level file 'configure.ac' correctly contains a test
for the presence of 'sa_len' in 'struct sockaddr' using the
header files '<sys/types.h>' and '<sys/socket.h>'.
However, after bootstrapping, the new 'configure' impements
two test versions, one of them has eliminated <sys/types.h>.
Reading 'config.log' the wrong instance of these tests is
executed for GNU/Linux, as well as for OpenBSD. Hence the
test fails of the wrong reason for all BSD systems.
Could someone find the flaw? Is there a GNU macro making
a wrong turn?
On a BSD system
#include <sys/types.h>
#include <sys/socket.h>
int main(void) {
static struct sockaddr sa;
sa.sa_len = 0;
return 0;
}
is a minaimal, correct and functional program, but our configuration
is unable to detect this, instead claiming the opposite to be true.
Best regards,
Mats