chronoxor/CppCommon

build fails on musl based systems

Closed this issue · 1 comments

On musl based systems we have three issues to overcome:

  1. musl implements the POSIX standard strerror_r which returns an int not a pointer to a string which GNU specific
  2. there is no pthread_yield in musl, only sched_yield. As far as I know on Linux pthread_yield will call sched_yield anyway
  3. there is no backtrace.
    After these issues are resolved CppCommon and hence FastBinaryEncoding will build and pass the tests
alpinebuilder:/usr/src/fbe/bin# ./fbe-tests 
===============================================================================
All tests passed (1003987 assertions in 45 test cases)

Patch

I can provide a pull requests if the changes are deemed worthy.

Should be fixed. Please check