1
0
mirror of synced 2026-01-12 00:42:47 +00:00

musllinux fix so wheels build can work

This commit is contained in:
Miodrag Milanovic 2026-01-11 15:23:38 +01:00
parent 991e704899
commit 2b12b74121

View File

@ -253,7 +253,11 @@ std::optional<AbcProcess> spawn_abc(const char* abc_exe, DeferredLogs &logs) {
char arg1[] = "-s"; char arg1[] = "-s";
char* argv[] = { strdup(abc_exe), arg1, nullptr }; char* argv[] = { strdup(abc_exe), arg1, nullptr };
if (0 != posix_spawnp(&result.pid, abc_exe, &file_actions, nullptr, argv, environ)) { if (0 != posix_spawnp(&result.pid, abc_exe, &file_actions, nullptr, argv, environ)) {
#if defined(__GLIBC__)
logs.log_error("posix_spawnp %s failed (errno=%s)", abc_exe, strerrorname_np(errno)); logs.log_error("posix_spawnp %s failed (errno=%s)", abc_exe, strerrorname_np(errno));
#else
logs.log_error("posix_spawnp %s failed (errno=%s)", abc_exe, strerror(errno));
#endif
return std::nullopt; return std::nullopt;
} }
free(argv[0]); free(argv[0]);