]> git.pld-linux.org Git - packages/perl-Coro.git/blob - Coro-libc.patch
- initial revision
[packages/perl-Coro.git] / Coro-libc.patch
1 diff -Nur Coro-3.41.orig/Coro/libcoro/coro.c Coro-3.41.chng/Coro/libcoro/coro.c
2 --- Coro-3.41.orig/Coro/libcoro/coro.c  2006-11-29 12:46:19.000000000 +0100
3 +++ Coro-3.41.chng/Coro/libcoro/coro.c  2007-02-06 23:01:35.000000000 +0100
4 @@ -215,8 +215,16 @@
5    ctx->env[0].__jmpbuf[0].__pc = (char *)coro_init;
6    ctx->env[0].__jmpbuf[0].__sp = (void *)((char *)sptr + ssize);
7  #elif defined(__GNU_LIBRARY__) && defined(__amd64__)
8 +
9 +#ifndef JB_PC
10 +#define JB_PC 7
11 +#define JB_RSP 6
12 +#define JB_RBP 1
13 +#endif
14 +
15    ctx->env[0].__jmpbuf[JB_PC]  = (long)coro_init;
16    ctx->env[0].__jmpbuf[JB_RSP] = (long)STACK_ADJUST_PTR (sptr,ssize);
17 +  
18  #else
19  #error "linux libc or architecture not supported"
20  #endif
This page took 0.176643 seconds and 3 git commands to generate.