Dear all,
I try to compile a program (JNOS2, available here:
http://www.langelaar.net/projects/jnos2/download.html
on a Sharp Zaurus C-3200 (arm-linux).

A fragment of the code is:

#ifdef linux
#if __GNU_LIBRARY__ > 1
/* GLIBC v6 */
#define _PC(p) (p->env->__jmpbuf[JB_PC])
#define _SP(p) (p->env->__jmpbuf[JB_SP])
#define _BP(p) (p->env->__jmpbuf[JB_BP])
#else
#define _PC(p) (p->env->__pc)
#define _SP(p) (p->env->__sp)
#define _BP(p) (p->env->__bp)
#endif
#endif

Now JB_SP etc. are undefined on this target.
uClibc-0.9.28/libc/sysdeps/linux/arm/bits/setjmp.h says:

#ifndef _ASM
/* Jump buffer contains v1-v6, sl, fp, sp and pc. Other registers are not
saved. */
typedef int __jmp_buf[22];
#endif

What would be the proper way to get around this?

Thanks for any hint.


Torsten