Commit 1b7698c
fix: patch Corrade strerror_r for musl libc compatibility
musl only provides the XSI strerror_r (returns int). Corrade's
ErrorString.cpp falls into the GNU branch (expects char*) when
_GNU_SOURCE is defined by GCC even on musl targets, causing a compile
error: "invalid conversion from int to const char*".
Add a portability patch that extends the existing POSIX branch condition
to also cover non-glibc Linux (detected via __linux__ && !__GLIBC__),
so musl builds use the int-returning XSI variant that actually exists.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent fc16118 commit 1b7698c
2 files changed
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
0 commit comments