El 19 d’abril de 2012 21:09, Steven Chamberlain <ste...@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


--
To UNSUBSCRIBE, email to debian-bsd-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAOfDtXMypPXBnnLZKKy3eVtB=yebrctqg_6pcppba-anobv...@mail.gmail.com

Reply via email to