dsprenkels / randombytes

A portable C library for generating cypto-secure random bytes
MIT License
96 stars 37 forks source link

Add support for musl-libc #12

Closed dsprenkels closed 6 years ago

dsprenkels commented 6 years ago

Musl-gcc fails on compilation, because it cannot find sys/random.h. From this header file, we only use RNDGETENTCNT, which is 0. This PR edits the code s.t. we do not have to rely on the presence of the linux headers anymore. Instead, we define this little piece of the linux headers inline. (Based on a StackOverflow answer.

This PR also adds musl-libc to travis as a build target.