From bd7b0a8197684afd3a695bfe56b19d2650228f0f Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Thu, 21 Nov 2019 02:34:42 +0100 Subject: [PATCH] Support callstack capture on BSD. --- client/TracyCallstack.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/client/TracyCallstack.h b/client/TracyCallstack.h index 40e1ace4..e8d4eea7 100644 --- a/client/TracyCallstack.h +++ b/client/TracyCallstack.h @@ -1,6 +1,10 @@ #ifndef __TRACYCALLSTACK_H__ #define __TRACYCALLSTACK_H__ +#if !defined _WIN32 && !defined __CYGWIN__ +# include +#endif + #if defined _WIN32 || defined __CYGWIN__ # define TRACY_HAS_CALLSTACK 1 #elif defined __ANDROID__ @@ -15,7 +19,7 @@ # else # define TRACY_HAS_CALLSTACK 2 # endif -#elif defined __APPLE__ +#elif defined __APPLE__ || defined BSD # define TRACY_HAS_CALLSTACK 4 #endif