* Raphael Cohn <raphael.cohn@stormmq.com> [2013-11-19 16:20:27 +0000]:
> src/booleans.c wants to use the macro _D_ALLOC_NAMLEN - which seems to be ashould be fixed upstream
> glibc-ism in dirent.h. It may be possible to hack in their macro definition
i think you can just use pthread_atfork instead
> to overcome this;
> src/proccattr.c tries to use __register_atfork, which is in the LSB but I
> suspect is a glibc-ism.
>
> I'm stuck on the latter - I'm not deep into this stuff. Does anyone have
> any ideas how to patch / hack / bypass this to get things compiled? Are
> there any other workarounds (apart from not using libselinux or musl)?
#define __register_atfork(prepare,parent,child,dso) pthread_atfork(prepare,parent,child)
the dso arg is just there in case dlclose() is used
which is broken on glibc anyway and noop on musl