OS don't have AF_LOCAL - in smbldap.c svn r5522
Guenther Deschner
gd at samba.org
Fri Feb 25 10:13:19 GMT 2005
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
--
Guenther Deschner Samba Team
SerNet GmbH - Goettingen gd at samba.org
gd at sernet.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20050225/3b2445a0/attachment.bin
More information about the samba-technical
mailing list