From cb5d77586931db16261a9ec77d748323ed1d8a6d Mon Sep 17 00:00:00 2001 From: Lorenzo Cogotti Date: Tue, 8 Jun 2021 01:18:12 +0200 Subject: [PATCH] [tools/bgpgrep] Support __builtin_longjmp() only on GCC --- tools/bgpgrep/bgpgrep_local.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/bgpgrep/bgpgrep_local.h b/tools/bgpgrep/bgpgrep_local.h index 208202d..eb5b99b 100755 --- a/tools/bgpgrep/bgpgrep_local.h +++ b/tools/bgpgrep/bgpgrep_local.h @@ -85,7 +85,7 @@ struct Timestampop { // ================================== // Non Local Jumps - error management -#ifdef __GNUC__ +#if defined(__GNUC__) && !defined(__clang__) // Faster alternative, less taxing than standard setjmp(), but comes with // a few gotchas: https://gcc.gnu.org/onlinedocs/gcc/Nonlocal-Gotos.html typedef Sintptr frame_buf[5];