mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-23 06:44:35 +00:00
Get proper program name on BSD.
This commit is contained in:
parent
7940977dba
commit
c79449a6a1
@ -250,7 +250,7 @@ static const char* GetProcessName()
|
|||||||
# endif
|
# endif
|
||||||
#elif defined _GNU_SOURCE || defined __CYGWIN__
|
#elif defined _GNU_SOURCE || defined __CYGWIN__
|
||||||
processName = program_invocation_short_name;
|
processName = program_invocation_short_name;
|
||||||
#elif defined __APPLE__
|
#elif defined __APPLE__ || defined BSD
|
||||||
auto buf = getprogname();
|
auto buf = getprogname();
|
||||||
if( buf ) processName = buf;
|
if( buf ) processName = buf;
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user