1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-19 00:13:33 +00:00

devel/z88dk: correct the previous build fix (mea culpa)

Type mismatch was caused by the missing structure field,
not that `patchdata' is `int', it is `char *' actually.
This commit is contained in:
Alexey Dokuchaev 2023-02-14 10:48:40 +00:00
parent cde2b20596
commit d187b7420b
2 changed files with 10 additions and 2 deletions

View File

@ -56,8 +56,6 @@ post-patch:
@${REINPLACE_CMD} -e '/^CFLAGS =/s,$$, -I../../../include,' \
${WRKSRC}/test/suites/make.config
# Fix the build against Clang 15
@${REINPLACE_CMD} -e '/patchdata/s,NULL,0,' \
${WRKSRC}/src/appmake/zxn.c
@${REINPLACE_CMD} -e '/, ifs/s,move,std::&,' \
${WRKSRC}/src/z80asm/src/cpp/preproc.cpp

View File

@ -0,0 +1,10 @@
--- src/appmake/zxn.c.orig 2020-08-15 03:00:06 UTC
+++ src/appmake/zxn.c
@@ -31,6 +31,7 @@ static struct zx_tape zxt = {
NULL, // merge
-1, // patchpos
-1, // clear_address
+ -1, // usr_address
NULL, // patchdata
NULL, // screen
0, // audio