chiark / gitweb /
work-around usage of glibc-specific __register_atfork for musl systems
authormaxice8 <thinkabit.ukim@gmail.com>
Tue, 16 Jan 2018 10:29:32 +0000 (08:29 -0200)
committerSven Eden <yamakuzure@gmx.net>
Wed, 24 Jan 2018 12:22:41 +0000 (13:22 +0100)
commit572cbd8524a5e2b22150c32118f58672449a5ca7
tree93f52ddcca3ac71f14e28fdbced5320863c1f54f
parent047b54346db53a6144172f6c2fd05e329ad39913
work-around usage of glibc-specific __register_atfork for musl systems

__register_atfork is glibc-specific but is roughly equivalent to
pthread_atfork, add a definition of it on musl_missing.h and guard
against the definition of __register_atfork on src/basic/process-util.c
using #ifdef __GLIBC__
src/basic/process-util.c
src/shared/musl_missing.h