Skip to content
Commit 257591cf authored by Michael Pyne's avatar Michael Pyne
Browse files

Fix compilation with strict libc (such as musl).

Many of the functions we use implicitly are not part of the C standard
library, so we have to specify that we're pulling from POSIX, X/Open,
BSD (or whatever standard we're using) before we can rely on the
definition being available.

There's plenty of room for refactoring here since I mostly stopped at
just getting the functions being called to show up from their includes,
although I did replace rindex with strrchr since the latter is
standardized.

Differential Revision: https://phabricator.kde.org/D6631
parent 7d7cafef
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment