From: Vsevolod Stakhov Date: Thu, 12 Oct 2023 14:31:09 +0000 (+0100) Subject: [Minor] Fix build on some systems X-Git-Tag: 3.7.2~16 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=79edca0b0a716f47cd1ff0d4c4c8911bfd3c2be5;p=rspamd.git [Minor] Fix build on some systems --- diff --git a/contrib/backward-cpp/backward.hpp b/contrib/backward-cpp/backward.hpp index b853f8308..ce725559b 100644 --- a/contrib/backward-cpp/backward.hpp +++ b/contrib/backward-cpp/backward.hpp @@ -379,7 +379,13 @@ typedef SSIZE_T ssize_t; #if BACKWARD_HAS_UNWIND == 1 +#ifndef _GNU_SOURCE +#define _GNU_SOURCE +#include +#undef _GNU_SOURCE +#else #include +#endif // while gcc's unwind.h defines something like that: // extern _Unwind_Ptr _Unwind_GetIP (struct _Unwind_Context *); // extern _Unwind_Ptr _Unwind_GetIPInfo (struct _Unwind_Context *, int *);