jshon: fix build on aarch64-darwin

```
jshon> clang -std=c99 -Wall -pedantic -Wextra -Werror    -c -o jshon.o jshon.c
jshon> jshon.c:189:25: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
jshon> json_t** stack_safe_peek()
jshon>                         ^
jshon>                          void
jshon> 6 errors generated.
jshon> make: *** [<builtin>: jshon.o] Error 1
```

Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>
This commit is contained in:
Roman Volosatovs 2023-12-05 14:06:52 +01:00 committed by Weijia Wang
parent 8409e43c22
commit 73877a6f34

View File

@ -13,6 +13,8 @@ stdenv.mkDerivation rec {
buildInputs = [ jansson ];
env.NIX_CFLAGS_COMPILE = "-Wno-error=strict-prototypes";
patches = [
(fetchpatch {
# https://github.com/keenerd/jshon/pull/62