I am aware that it is in thirdparty code but mold is failing to build on most of Debian architectures with gcc 13 with:
In file included from /<<PKGBUILDDIR>>/third-party/mimalloc/src/prim/prim.c:25:
/<<PKGBUILDDIR>>/third-party/mimalloc/src/prim/unix/prim.c: In function ‘_mi_prim_getenv’:
/<<PKGBUILDDIR>>/third-party/mimalloc/src/prim/unix/prim.c:737:19: error: implicit declaration of function ‘getenv’ [-Werror=implicit-function-declaration]
737 | const char* s = getenv(name);
| ^~~~~~
/<<PKGBUILDDIR>>/third-party/mimalloc/src/prim/unix/prim.c:618:1: note: ‘getenv’ is defined in header ‘<stdlib.h>’; did you forget to ‘#include <stdlib.h>’?
I am aware that it is in thirdparty code but mold is failing to build on most of Debian architectures with gcc 13 with:
See https://buildd.debian.org/status/package.php?p=mold