[PATCH] Add autoconf test for struct sockaddr_storage.ss_family.
Gerald (Jerry) Carter
jerry at samba.org
Tue Oct 23 15:10:31 GMT 2007
-----BEGIN PGP SIGNED MESSAGE-----
Stefan (metze) Metzmacher wrote:
> Hi Jerry,
>> diff --git a/source/configure.in b/source/configure.in
>> index a96e2d9..d9ab2c1 100644
>> --- a/source/configure.in
>> +++ b/source/configure.in
>> @@ -1,4 +1,4 @@
>> -dnl Process this file with autoconf to produce a configure script.
>> +>dnl Process this file with autoconf to produce a configure script.
> why this hunk?
Metze, I should have tested this more which is why I
replied to ignore it. But the background is that on AIX 5.2
struct sockaddr_storage has a member named ss_family,
but on AIX 5.3, the member is name __ss_family so I'm getting
all kinds of compile errors. The autoconf test was to check
for a valid ss_family member.
But the problem is that the HAVE_SA_SS_FAMILY macro is never
defined when the test are run to the autoconf test always
> I think it would be better to have this in
> lib/replace/system/network.h and the configure check
> in lib/replace/libreplace.m4.
Yeah. You're right. I'll work on it some more.
Samba ------- http://www.samba.org
Centeris ----------- http://www.centeris.com
"What man is a man who does not make the world better?" --Balian
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
More information about the samba-technical