skoobe / riofs

Userspace S3 filesystem
GNU General Public License v3.0
393 stars 60 forks source link

Fix Portability #132

Closed nopjmp closed 7 years ago

nopjmp commented 7 years ago

This pull request fixes the portability on musl and on alternative OpenSSL implementations

LibreSSL removed deprecated functions from the headers. OpenSSL team implement a "strict" mode which does the same, but is optional. I only tested against LibreSSL, but it should work with BoringSSL.

My first commit also removes RAND_poll which is called automatically which I failed to mention in the commit message. RAND_pseudo_bytes is deprecated shouldn't be used anymore.

I may test OpenBSD, but their fuse implementation may need some special workarounds.

nopjmp commented 7 years ago

I went ahead and added FreeBSD portability since I have a FreeBSD 11 machine. This in turn also allows systems that need libexecinfo to "just work" thanks to the autoconf macro by Thomas Jahns.

wizzard commented 7 years ago

Everything looks great! Thank you!