hyperboria / bugs

Peer-to-peer IPv6 networking, secure and near-zero-conf.
154 stars 17 forks source link

musl doesn't provide sysctl.h #20

Closed dangowrt closed 9 years ago

dangowrt commented 9 years ago

crypto/random/seed/LinuxRandomUuidSysctlRandomSeed.c uses sysctl.h which is not provided by musl, see https://devsonacid.wordpress.com/2014/07/12/how-compatible-is-libressl/ for some comments about musl and sysctl.h. My temporary fix is to have stubs only in LinuxRandomUuidSysctlRandomSeed.c unless GLIBC is defined -- that doesn't look very clean to me and probably your cool jsbuild system got some smarter way to handle that...

dangowrt commented 9 years ago

see https://github.com/openwrt-routing/packages/blob/master/cjdns/patches/010-fix-musl-build.patch