git: ac442b50ab68 - main - devel/simavr: fix build on FreeBSD 15.1
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 28 Jun 2026 11:03:39 UTC
The branch main has been updated by fuz:
URL: https://cgit.FreeBSD.org/ports/commit/?id=ac442b50ab68222476d652af9802a64eef71fd33
commit ac442b50ab68222476d652af9802a64eef71fd33
Author: Robert Clausecker <fuz@FreeBSD.org>
AuthorDate: 2026-06-26 12:26:44 +0000
Commit: Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2026-06-28 10:59:29 +0000
devel/simavr: fix build on FreeBSD 15.1
Starting with FreeBSD 15.1, we define the macro strdupa() in <string.h>.
The software defines its own copy. Respect its wishes and #undef our
macro to fix the build.
MFH: 2026Q2
---
devel/simavr/files/patch-simavr_sim_sim__vcd__file.c | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/devel/simavr/files/patch-simavr_sim_sim__vcd__file.c b/devel/simavr/files/patch-simavr_sim_sim__vcd__file.c
new file mode 100644
index 000000000000..388831300642
--- /dev/null
+++ b/devel/simavr/files/patch-simavr_sim_sim__vcd__file.c
@@ -0,0 +1,10 @@
+--- simavr/sim/sim_vcd_file.c.orig 2026-06-26 12:23:48 UTC
++++ simavr/sim/sim_vcd_file.c
+@@ -34,6 +34,7 @@ DEFINE_FIFO(avr_vcd_log_t, avr_vcd_fifo);
+
+ DEFINE_FIFO(avr_vcd_log_t, avr_vcd_fifo);
+
++#undef strdupa
+ #define strdupa(__s) strcpy(alloca(strlen(__s)+1), __s)
+
+ static void