Unverified Commit ea103a02 authored by Reno Dakota's avatar Reno Dakota
Browse files

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.
parent 4e7bbd80
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -15,6 +15,10 @@ stdenv.mkDerivation rec {
    sha256 = "0bbpqzsqh9zrc6cg62f6vp1p4dzvv37blsd0gdlzdskgwvyzba8d";
  };

  postPatch = ''
    sed -i 1i'#include <string.h>' libstroke/stroke.c
  '';

  nativeBuildInputs = [ automake autoconf ];
  buildInputs = [ libX11 ];