OS don't have AF_LOCAL - in smbldap.c svn r5522
Doug VanLeuven
roamdad at sonic.net
Fri Feb 25 12:58:45 GMT 2005
Hi Guenther,
Guenther Deschner wrote:
>Hi Doug,
>
>On Fri, Feb 25, 2005 at 01:56:25AM -0800, Doug VanLeuven wrote:
>
>
>>AIX 5.2, no working AF_LOCAL so
>>lib/smbldap.c:891: error: `AF_LOCAL' undeclared (first use in this function)
>>
>>- getpeername(sd, (struct sockaddr *) &addr, &len) < 0) {
>>+ ((getpeername(sd, (struct sockaddr *) &addr, &len) < 0) ||
>>addr.sun_family == AF_LOCAL)) {
>>
>>For now I'm just ifdef'ing the new comparison . Is there a better way?
>>#ifdef HAVE_WORKING_AF_LOCAL
>> || addr.sun_family == AF_LOCAL
>>#endif
>> )) {
>>
>>
>
>You should be able to use AF_UNIX instead, that is the POSIX name for
>AF_UNIX.
>
>Guenther
>
>
Thanks. That worked. My file of diffs for AIX to patch against the
releases just keeps slowly growing :-)
Regards, Doug
More information about the samba-technical
mailing list