1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-19 09:15:30 +03:00
aports/testing/goxel/fix-musl.patch
Diaz Urbaneja Victor Diego Alenjandro 477e0ef72c testing/goxel: new aport
Open Source 3D voxel editor for Mac, Windows and Linux.
https://goxel.xyz/
2021-02-21 17:20:18 +00:00

13 lines
458 B
Diff

--- a/ext_src/yocto/ext/filesystem.hpp
+++ b/ext_src/yocto/ext/filesystem.hpp
@@ -1531,8 +1531,8 @@
return rc == 0 ? (const char*)buffer : "Error in strerror_r!";
#else
char buffer[512];
- char* msg = strerror_r(code ? code : errno, buffer, sizeof(buffer));
- return msg ? msg : buffer;
+ int msg = strerror_r(code ? code : errno, buffer, sizeof(buffer));
+ return msg == 0 ? (const char*)buffer : "Error in strerror_r!";
#endif
}