vorbisgain: Add patch to fix implicit declaration of isatty()

Fixes #370032
This commit is contained in:
Francis Gagné 2025-01-07 20:49:43 -05:00
parent 47eeefaba3
commit 646113a9dd
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,10 @@
--- vorbisgain-0.37/misc.c 2004-01-03 16:17:28.000000000 -0500
+++ vorbisgain-0.37-patched/misc.c 2025-01-07 20:35:13.056221211 -0500
@@ -23,6 +23,7 @@
#else /* WIN32 */
#include <errno.h>
#include <ctype.h>
+#include <unistd.h>
#ifndef DISABLE_WINSIZE

View File

@ -15,6 +15,10 @@ stdenv.mkDerivation rec {
sha256 = "1v1h6mhnckmvvn7345hzi9abn5z282g4lyyl4nnbqwnrr98v0vfx";
};
patches = [
./isatty.patch
];
hardeningDisable = [ "format" ];
buildInputs = [