Skip to content

Fix for musl systems and expand context cracking capabilities#61

Open
Jack-Punter wants to merge 4 commits intodevelopfrom
musl-fix
Open

Fix for musl systems and expand context cracking capabilities#61
Jack-Punter wants to merge 4 commits intodevelopfrom
musl-fix

Conversation

@Jack-Punter
Copy link
Contributor

The 4coder build fails on non glibc linux systems due to non-standard GNU extensions used in the linux platform layer. This PR is a continuation of #56 which was closed due to the submitter deleting his repository.
It:

  • removes the use of GCC extensions
    • replace strndupa with a strcpy into a fixed sized buffer (with size PATH_MAX)
    • replace localtime with mktime
  • Addresses a TODO in the linux platform's system_get_cannonical function
    • replaces custom string with realpath
  • update context cracking in 4coder_base_types.h to be more thorough, should also enable the use clang on windows and linux rather than just msvc and gcc respectively
  • Add || defined(__linux__) to linux os cracking as musl defines that over __gnu_linux__

@Jack-Punter Jack-Punter requested a review from a team as a code owner March 5, 2026 10:37
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