Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Portability fixes #1

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

doughdemon
Copy link

The first commit fixes compilation with musl libc. The other commits are rather unrelated. Please feel free to cherry pick any of them.

There are versions of basename(3) with different behavior:
- The GNU version, which does not modify its argument.
- The POSIX version, which may modify its argument.

Because we use basename on a C++ string themdir, we should not use the
POSIX version. On the other hand, the GNU version is not available on
non-glibc systems.

So avoid the use of basename() by keeping track of the themeName.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant