From 69ab141db48061a61412c39f4b609164bc6a3e63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stanis=C5=82aw=20Pitucha?= Date: Fri, 6 Oct 2023 10:47:09 +1100 Subject: [PATCH] scdoc: fix build with clang 16 --- pkgs/tools/typesetting/scdoc/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/tools/typesetting/scdoc/default.nix b/pkgs/tools/typesetting/scdoc/default.nix index 7ab2a82ed320f..607d5a5e2da6b 100644 --- a/pkgs/tools/typesetting/scdoc/default.nix +++ b/pkgs/tools/typesetting/scdoc/default.nix @@ -20,6 +20,10 @@ stdenv.mkDerivation (finalAttrs: { postPatch = '' substituteInPlace Makefile \ --replace "-static" "" + substituteInPlace include/str.h \ + --replace "struct str *str_create();" "struct str *str_create(void);" + substituteInPlace src/string.c \ + --replace "struct str *str_create() {" "struct str *str_create(void) {" ''; makeFlags = [