summaryrefslogtreecommitdiff
path: root/benchmarks/libmicro/files/patch-longjmp.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@FreeBSD.org>2005-08-31 08:10:28 +0000
committerVsevolod Stakhov <vsevolod@FreeBSD.org>2005-08-31 08:10:28 +0000
commit7eeb8daa5c80bc88f8ada48a021093afd3872e2e (patch)
treea1dc796bc2051763e8e4ed5bac7f1cb2e8840467 /benchmarks/libmicro/files/patch-longjmp.c
parentAdd conky, light-weight system monitor under active development. (diff)
Add two patches to make longjmp tests runable.
Submitted by: Mustabasic Reuf <reuf.mustabasic@gmail.com> Obtained from: Opensolaris development forum
Diffstat (limited to 'benchmarks/libmicro/files/patch-longjmp.c')
-rw-r--r--benchmarks/libmicro/files/patch-longjmp.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/benchmarks/libmicro/files/patch-longjmp.c b/benchmarks/libmicro/files/patch-longjmp.c
new file mode 100644
index 000000000000..1c190b574c94
--- /dev/null
+++ b/benchmarks/libmicro/files/patch-longjmp.c
@@ -0,0 +1,11 @@
+--- longjmp.c.orig Wed Aug 31 11:53:48 2005
++++ longjmp.c Wed Aug 31 11:55:10 2005
+@@ -55,7 +55,7 @@
+ int
+ benchmark(void *tsd, result_t *res)
+ {
+- int i = 0;
++ volatile int i = 0;
+ jmp_buf env;
+
+ (void) setjmp(env);