cpio: Fix build with gcc=15

This commit is contained in:
Dmitry Bogatov 2025-08-05 19:38:06 +00:00
parent 4e2d61f0a1
commit e4e98bb074

View file

@ -24,6 +24,12 @@ stdenv.mkDerivation rec {
separateDebugInfo = true;
# The code won't compile in c23 mode.
# https://gcc.gnu.org/gcc-15/porting_to.html#c23-fn-decls-without-parameters
configureFlags = [
"CFLAGS=-std=gnu17"
];
preConfigure = lib.optionalString stdenv.hostPlatform.isCygwin ''
sed -i gnu/fpending.h -e 's,include <stdio_ext.h>,,'
'';