Re: libv8, nodejs on kfreebsd (was: r4209 - trunk/glibc-ports/kfreebsd/bits)
El 19 d’abril de 2012 21:09, Steven Chamberlain <steven@pyro.eu.org> ha escrit:
> Could you suggest what to do about setproctitle, which is used by some
> FreeBSD-specific code that expects it to find it in <unistd.h>.
>
> For kFreeBSD it seems necessary to include <bsd/unistd.h> instead, but
> is correct way to do this without patching the source code?
Should be ok. I suggest something like:
#ifdef __GLIBC__
#include <bsd/unistd.h>
#endif
then use setproctitle unconditionally.
--
Robert Millan
Reply to: