libstroke: fix build with gcc14

> stroke.c:267:5: error: implicit declaration of function 'strcpy'

fix by including `string.h`. code seems abandoned but is still used by a
handful of packages.
This commit is contained in:
Reno Dakota
2024-11-22 13:40:58 +00:00
parent 4e7bbd80cc
commit ea103a02af
+4
View File
@@ -15,6 +15,10 @@ stdenv.mkDerivation rec {
sha256 = "0bbpqzsqh9zrc6cg62f6vp1p4dzvv37blsd0gdlzdskgwvyzba8d";
};
postPatch = ''
sed -i 1i'#include <string.h>' libstroke/stroke.c
'';
nativeBuildInputs = [ automake autoconf ];
buildInputs = [ libX11 ];