freebsd-ports/benchmarks/libmicro/files/patch-longjmp.c
Vsevolod Stakhov 7eeb8daa5c Add two patches to make longjmp tests runable.
Submitted by:	Mustabasic Reuf <reuf.mustabasic@gmail.com>
Obtained from:	Opensolaris development forum
2005-08-31 08:10:28 +00:00

11 lines
225 B
C

--- 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);