From b88c66347485b1a05ed041e36a203f05cb447e55 Mon Sep 17 00:00:00 2001 From: xsa Date: Thu, 3 Jun 2004 07:52:30 +0000 Subject: [PATCH] fix behaviour on 64bit arches, based on patches from FreeBSD; tested and ok sturm@. --- benchmarks/ubench/patches/patch-cpubench_c | 20 ++++++++++++++++++++ benchmarks/ubench/patches/patch-membench_c | 12 ++++++++++++ benchmarks/ubench/patches/patch-signals_c | 12 ++++++++++++ 3 files changed, 44 insertions(+) create mode 100644 benchmarks/ubench/patches/patch-cpubench_c create mode 100644 benchmarks/ubench/patches/patch-membench_c create mode 100644 benchmarks/ubench/patches/patch-signals_c diff --git a/benchmarks/ubench/patches/patch-cpubench_c b/benchmarks/ubench/patches/patch-cpubench_c new file mode 100644 index 00000000000..d7cdb35ac89 --- /dev/null +++ b/benchmarks/ubench/patches/patch-cpubench_c @@ -0,0 +1,20 @@ +$OpenBSD: patch-cpubench_c,v 1.1 2004/06/03 07:52:30 xsa Exp $ +--- cpubench.c.orig 2000-05-29 05:21:13.000000000 +0200 ++++ cpubench.c 2004-06-03 09:40:21.000000000 +0200 +@@ -25,6 +25,7 @@ + #include + #include + #include ++#include + #include + #include + #include +@@ -41,7 +42,7 @@ extern char *_sys_errlist[]; + #define sys_errlist _sys_errlist + #endif + +-#ifdef SunOS ++#if defined(SunOS) || defined(__OpenBSD__) + extern sigjmp_buf env; + #else + extern jmp_buf env; diff --git a/benchmarks/ubench/patches/patch-membench_c b/benchmarks/ubench/patches/patch-membench_c new file mode 100644 index 00000000000..bb9e93acd9e --- /dev/null +++ b/benchmarks/ubench/patches/patch-membench_c @@ -0,0 +1,12 @@ +$OpenBSD: patch-membench_c,v 1.1 2004/06/03 07:52:30 xsa Exp $ +--- membench.c.orig 2000-07-31 19:23:27.000000000 +0200 ++++ membench.c 2004-06-03 09:40:49.000000000 +0200 +@@ -42,7 +42,7 @@ extern char *_sys_errlist[]; + #define sys_errlist _sys_errlist + #endif + +-#ifdef SunOS ++#if defined(SunOS) || defined(__OpenBSD__) + extern sigjmp_buf env; + #else + extern jmp_buf env; diff --git a/benchmarks/ubench/patches/patch-signals_c b/benchmarks/ubench/patches/patch-signals_c new file mode 100644 index 00000000000..d948a403b61 --- /dev/null +++ b/benchmarks/ubench/patches/patch-signals_c @@ -0,0 +1,12 @@ +$OpenBSD: patch-signals_c,v 1.1 2004/06/03 07:52:30 xsa Exp $ +--- signals.c.orig 2000-05-29 05:16:05.000000000 +0200 ++++ signals.c 2004-06-03 09:41:21.000000000 +0200 +@@ -22,7 +22,7 @@ + #include + #include + +-#ifdef SunOS ++#if defined(SunOS) || defined(__OpenBSD__) + sigjmp_buf env; + #else + jmp_buf env;