Skip to content

Commit ea103a0

Browse files
committed
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.
1 parent 4e7bbd8 commit ea103a0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkgs/by-name/li/libstroke/package.nix

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ stdenv.mkDerivation rec {
1515
sha256 = "0bbpqzsqh9zrc6cg62f6vp1p4dzvv37blsd0gdlzdskgwvyzba8d";
1616
};
1717

18+
postPatch = ''
19+
sed -i 1i'#include <string.h>' libstroke/stroke.c
20+
'';
21+
1822
nativeBuildInputs = [ automake autoconf ];
1923
buildInputs = [ libX11 ];
2024

0 commit comments

Comments
 (0)