[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-----
Hash: SHA1

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
failed.

> 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.




cheers, jerry
- --
=====================================================================
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

iD8DBQFHHg7nIR7qMdg1EfYRAoAuAJ9X5b518UibJpcYwSM0iktrPgKiRQCg7Apm
t97RGtxuKRLUM4d0Ifup0Ys=
=Cdvt
-----END PGP SIGNATURE-----


More information about the samba-technical mailing list