aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/backward-cpp/backward.hpp
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2023-10-12 15:31:09 +0100
committerVsevolod Stakhov <vsevolod@rspamd.com>2023-10-12 15:31:09 +0100
commit79edca0b0a716f47cd1ff0d4c4c8911bfd3c2be5 (patch)
tree7c9299a03f6b8c368d67a430e70a4420bbddb16d /contrib/backward-cpp/backward.hpp
parent81032871e50dc0b1a6fdcb01df0b9e6a2d4fdff3 (diff)
downloadrspamd-79edca0b0a716f47cd1ff0d4c4c8911bfd3c2be5.tar.gz
rspamd-79edca0b0a716f47cd1ff0d4c4c8911bfd3c2be5.zip
[Minor] Fix build on some systems
Diffstat (limited to 'contrib/backward-cpp/backward.hpp')
-rw-r--r--contrib/backward-cpp/backward.hpp6
1 files changed, 6 insertions, 0 deletions
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 <unwind.h>
+#undef _GNU_SOURCE
+#else
#include <unwind.h>
+#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 *);