From c79449a6a1d289bfd55e9d02a94a215eab99bf3e Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Thu, 21 Nov 2019 02:16:12 +0100 Subject: [PATCH] Get proper program name on BSD. --- client/TracyProfiler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/TracyProfiler.cpp b/client/TracyProfiler.cpp index 4862775e..6231b43b 100644 --- a/client/TracyProfiler.cpp +++ b/client/TracyProfiler.cpp @@ -250,7 +250,7 @@ static const char* GetProcessName() # endif #elif defined _GNU_SOURCE || defined __CYGWIN__ processName = program_invocation_short_name; -#elif defined __APPLE__ +#elif defined __APPLE__ || defined BSD auto buf = getprogname(); if( buf ) processName = buf; #endif