From 48239320b895820e3259038624572ad3a1d15706 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Sun, 18 Feb 2018 14:03:35 +0000 Subject: [PATCH] pdp11: setjmp structure --- Library/include/setjmp.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Library/include/setjmp.h b/Library/include/setjmp.h index c3c2736f..79e694fb 100644 --- a/Library/include/setjmp.h +++ b/Library/include/setjmp.h @@ -35,6 +35,12 @@ extern int setjmp(jmp_buf __env); __attribute__((__noreturn__)) void longjmp (jmp_buf env, int val); +#elif defined(__pdp11__) + + typedef uint16_t jmp_buf[5]; + extern int setjmp(jmp_buf __env); + __attribute__((__noreturn__)) void longjmp (jmp_buf env, int val); + #else #error jmp_buf definition not set for this architecture #endif -- 2.34.1