Skip to content

Commit

Permalink
fix: compilation issue for getting the process name (#163)
Browse files Browse the repository at this point in the history
* fix: compilation issue for getting the process name

Resolves #162
  • Loading branch information
dmehala authored Oct 13, 2024
1 parent 89426d5 commit 159629e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/datadog/platform_util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ int get_process_id() {

std::string get_process_name() {
#if defined(__APPLE__) || defined(__FreeBSD__)
char* process_name = getprogname();
const char* process_name = getprogname();
return (process_name != nullptr) ? process_name : "unknown-service";
#elif defined(__linux__) || defined(__unix__)
return program_invocation_short_name;
Expand Down

0 comments on commit 159629e

Please sign in to comment.