[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: back-ldap

I have a define to fix the inet_aton problem on BeOS.  I should work
elsewhere also.

/* Be is missing inet_aton...  allen@driversoft.com */
#define inet_aton(opt,bind) ((bind)->s_addr = inet_addr(optarg))

Hope that helps, it makes slapd run just fine on BeOS.  ;)

Allen Reese
Senior Software Engineer
Driversoft, Inc.

On Wed, 26 May 1999, Ben Collins wrote:

> On Tue, May 25, 1999 at 05:31:35PM -0700, Howard Chu wrote:
> > I've committed all the changes for the slapd LDAP backend to devel. This
> > includes additions to configure.in and a new configure script, along with
> > the actual new code. It built and ran with no real difficulty, except:
> > 
> > In slapd/main.c, "inet_aton" is undefined on my Solaris 2.5 box. I used the
> > inet_addr line instead (lines 130-135) to get past this hiccup. (Local patch
> > only, I didn't commit this change.) I don't believe inet_aton is commonly
> > present on older Unix libraries, but I haven't checked in depth.
> I noticed this same problem on BeOS. It seems a configure check and a few
> #ifdef's are needed, or stick with the least common denominator of
> inet_addr().