libstroke: fix build with gcc14 (#358142)

This commit is contained in:
Masum Reza 2024-11-30 12:54:07 +05:30 committed by GitHub
commit 57feb2a16f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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 ];