libaudit: fix includes for musl once again#491
Merged
stevegrubb merged 1 commit intolinux-audit:masterfrom Jul 31, 2025
Merged
Conversation
13 tasks
Contributor
Author
|
Alternatively this could become unconditional: Various things already use audit-userspace/auparse/auditd-config.c Line 33 in a4bb97d audit-userspace/audisp/audispd-pconfig.c Line 33 in a4bb97d audit-userspace/src/auditctl.c Line 40 in a4bb97d So if the verdict is to make it unconditional like in the other places, i am fine with that too. Not my call to make, i tried to be conservative here. |
Contributor
|
The man page says to include libgen.h. So, I think it can be unconditional. |
c2a75b2 to
cc8752f
Compare
Contributor
Author
|
fair enough, i made it unconditional |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
with glibc,
basenameis provided by string.h. However, musl exposesbasenameonly inlibgen.h.In glibc
libgen.h, there is this warning:This makes that version of
basenameprobably a bad default. As far as i can tell, this is not an issue on musl. Hence, only fall back tolibgen.hifbasenameis not yet defined.