Skip to content

Commit

Permalink
scdoc: fix build with clang 16
Browse files Browse the repository at this point in the history
  • Loading branch information
viraptor committed Oct 6, 2023
1 parent c6ce286 commit 69ab141
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkgs/tools/typesetting/scdoc/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down

0 comments on commit 69ab141

Please sign in to comment.