git: 10004332587e - main - benchmarks/libcpucycles: fix jmpbuf / sigjmpbuf confusion

From: Robert Clausecker <fuz_at_FreeBSD.org>
Date: Wed, 06 Nov 2024 15:18:36 UTC
The branch main has been updated by fuz:

URL: https://cgit.FreeBSD.org/ports/commit/?id=10004332587eb2be62e0ea7ee945770489e049e5

commit 10004332587eb2be62e0ea7ee945770489e049e5
Author:     Robert Clausecker <fuz@FreeBSD.org>
AuthorDate: 2024-11-02 11:35:02 +0000
Commit:     Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2024-11-06 15:14:31 +0000

    benchmarks/libcpucycles: fix jmpbuf / sigjmpbuf confusion
    
    I forgot to include this patch originally.  While the warning is
    harmless (sigjmp_buf and jmp_buf have the same layout on FreeBSD),
    it might not be on downstream ports consumers like DragonflyBSD.
---
 benchmarks/libcpucycles/Makefile                        |  1 +
 benchmarks/libcpucycles/files/patch-cpucycles_wrapper.c | 11 +++++++++++
 2 files changed, 12 insertions(+)

diff --git a/benchmarks/libcpucycles/Makefile b/benchmarks/libcpucycles/Makefile
index d2180fd16f91..4ed732450f6e 100644
--- a/benchmarks/libcpucycles/Makefile
+++ b/benchmarks/libcpucycles/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	libcpucycles
 DISTVERSION=	20240318
+PORTREVISION=	1
 CATEGORIES=	benchmarks devel
 MASTER_SITES=	https://cpucycles.cr.yp.to/
 
diff --git a/benchmarks/libcpucycles/files/patch-cpucycles_wrapper.c b/benchmarks/libcpucycles/files/patch-cpucycles_wrapper.c
new file mode 100644
index 000000000000..40c74c029cd0
--- /dev/null
+++ b/benchmarks/libcpucycles/files/patch-cpucycles_wrapper.c
@@ -0,0 +1,11 @@
+--- cpucycles/wrapper.c.orig	2024-10-29 18:59:34 UTC
++++ cpucycles/wrapper.c
+@@ -26,7 +26,7 @@ void cpucycles_tracesetup(void)
+   tracesetup = 1;
+ }
+ 
+-static jmp_buf crash_jmp;
++static sigjmp_buf crash_jmp;
+ 
+ static void crash(int s)
+ {