On Thu, Sep 18, 2008 at 02:29:54PM -0400, James Carlson wrote:
> Do it.  But make sure you get the necessary prototype for 'strlen'
> right.  Either add a nested include for <string.h> or (yecch) put a
> duplicate extern here.  Header files should be able to stand alone.

No less than five turns of the /opt/onbld/bin/nightly crank have revealed
that the least-painful approach is to actually declare strlen() in the
function:

        extern size_t strlen(const char *);

just like in the man page.  EVEN THEN I had to alter another command source
that did things like add include files halfway through between an undeclared
strlen() usage and the inclusion (via 3 levels of indirection via rpc
includes) of sys/un.h.

This sweater is unraveling fast.  :(

Dan
_______________________________________________
networking-discuss mailing list
[email protected]

Reply via email to