Skip to content

Improve portablility for non-gnu libc targets - #239

Open
barab00lka wants to merge 2 commits into
mentebinaria:masterfrom
barab00lka:patch-1
Open

barab00lka wants to merge 2 commits into
mentebinaria:masterfrom
barab00lka:patch-1

Conversation

@barab00lka

Copy link
Copy Markdown

this small change let me build the project on a musl libc linux distribution and supposedly should not break mac os or other targets

This change makes checking for availability of strerror_r more portable (take musl libc into account for example). If you have GNU_SOURCE defined that does not always mean that you are using glibc therefore strerror_r may be the POSIX variant not GNU. Should not break MacOS compatibility either
This removes the unneeded internal header <sys/cdefs.h> as musl does not provide it (its an internal glibc header that serves close to no purpose and may be left out) 
see: https://wiki.musl-libc.org/faq.html#Q:-When-compiling-something-against-musl,-I-get-error-messages-about-%3Ccode%3Esys/cdefs.h%3C/code%3E
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant