mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-24 21:54:01 +00:00
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 <heinrich.schuchardt@canonical.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
fc872ee84c
commit
95e7cafa81
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue