From 9c35feb14cfcdbb6cbfc8ce46aecacf6e5a50cad Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 17 Nov 2019 21:01:12 +0100 Subject: [PATCH] LibC: jmp_buf and sigjmp_buf should be distinct types This makes it possible to build 'vim' with more features enabled. --- Libraries/LibC/setjmp.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Libraries/LibC/setjmp.h b/Libraries/LibC/setjmp.h index 6d76e42ddc..2e537f484b 100644 --- a/Libraries/LibC/setjmp.h +++ b/Libraries/LibC/setjmp.h @@ -15,11 +15,12 @@ struct __jmp_buf { }; typedef struct __jmp_buf jmp_buf[1]; +typedef struct __jmp_buf sigjmp_buf[1]; int setjmp(jmp_buf); void longjmp(jmp_buf, int val); -int sigsetjmp(jmp_buf, int savesigs); -void siglongjmp(jmp_buf, int val); +int sigsetjmp(sigjmp_buf, int savesigs); +void siglongjmp(sigjmp_buf, int val); __END_DECLS