From: Heinrich Schuchardt Date: Sat, 1 Oct 2022 13:00:22 +0000 (+0200) Subject: x86: provide typedef jmp_buf X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=95e7cafa8171397b5ef5d15ec4eac29ffa6fbe87;p=u-boot.git x86: provide typedef jmp_buf The jmp_buf type is required by the C99 specification. Defining it for x86 fixes building the longjmp unit test. Signed-off-by: Heinrich Schuchardt Reviewed-by: Simon Glass --- diff --git a/arch/x86/include/asm/setjmp.h b/arch/x86/include/asm/setjmp.h index 49c36c1cc8..15915d0dc6 100644 --- a/arch/x86/include/asm/setjmp.h +++ b/arch/x86/include/asm/setjmp.h @@ -34,7 +34,9 @@ struct jmp_buf_data { #endif -int setjmp(struct jmp_buf_data *jmp_buf); -void longjmp(struct jmp_buf_data *jmp_buf, int val); +typedef struct jmp_buf_data jmp_buf[1]; + +int setjmp(jmp_buf env); +void longjmp(jmp_buf env, int val); #endif