[OPEN-ILS-DEV] non-portable code: strndup() in osrf-chat.c
Mike Rylander
mrylander at gmail.com
Thu May 10 17:19:10 EDT 2007
On 5/10/07, Bill Ott <bott at grpl.org> wrote:
> Back on the FreeBSD front, I've returned to this point, where I have no
> strndup(). I have the code Jeroen provided back on the 2nd, but
> frankly, I'm not sure what to do with it in this case.
>
Right now we don't have the patches in CVS. I need to go back and
look at them again and figure out the best way to integrate them
transparently. The patch, IIRC, consisted of strndup and strnlen
implementation, so I think I'll need to build a little bit of
infrastructure around them. I'll do my best to get that done this
evening and let you know so you can test with CVS HEAD.
> Or, do I even need to build the jserver, since I'm using Ejabberd? In
> which case I could just eliminate reference to it from the Makefile.
>
There's no real need to build jserver if you're planning to use
ejabberd. But with the inclusion of the patch the build should
succeed. Unless we're missing more functions, of course... ;)
--miker
>
>
>
> Jeroen Ruigrok van der Werven said the following on 04/30/2007 03:54 PM:
> > -On [20070430 21:38], Jeroen Ruigrok van der Werven (asmodai at in-nomine.org) wrote:
> >
> >> [...] meaning you have to provide your own implementation anyway.
> >>
> >
> > I found a MIT licensed implementation of strndup(). Now all I need is an
> > accompanying strnlen() to make it without too much additional hackery.
> >
> >
>
--
Mike Rylander
More information about the Open-ils-dev
mailing list