From 19367d54b0ec9ffadcce64ed9eddc4b86983140f Mon Sep 17 00:00:00 2001 From: Nick Gasson Date: Wed, 30 Nov 2022 23:19:31 +0000 Subject: [PATCH] Use setjmp instead of sigsetjmp on Windows --- src/util.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/util.h b/src/util.h index a74dc9f5..3aeb48df 100644 --- a/src/util.h +++ b/src/util.h @@ -57,6 +57,8 @@ #ifdef __MINGW32__ #define realpath(N, R) _fullpath((R), (N), _MAX_PATH) #define setenv(x, y, z) _putenv_s((x), (y)) +#define sigsetjmp(x, y) setjmp((x)) +#define siglongjmp(x, y) longjmp((x), (y)) #endif #define is_power_of_2(x) (((x) & ~(x)) == 0) -- 2.39.2