catdvi: fix generated code in configure script; fix darwin

add an int to generated main function to fix implicit int error
This commit is contained in:
annalee 2023-12-06 05:09:21 +00:00
parent 0c6d8c7833
commit 9559cea14a
No known key found for this signature in database

View File

@ -28,6 +28,11 @@ stdenv.mkDerivation (finalAttrs: {
})
];
# fix implicit-int compile error in test code used in configure script
postPatch = ''
sed -i 's/^main()/int main()/' configure
'';
hardeningDisable = [ "format" ];
outputs = [ "out" ] ++ lib.optional (with stdenv; buildPlatform.canExecute hostPlatform) "dev";