OS don't have AF_LOCAL - in smbldap.c svn r5522
Doug VanLeuven
roamdad at sonic.net
Fri Feb 25 09:56:25 GMT 2005
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
)) {
More information about the samba-technical
mailing list