Skip to content

Commit

Permalink
linux build fix
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitriyMusatkin committed Oct 30, 2023
1 parent bd1779f commit 6ff51bb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion source/posix/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@ int aws_memory_usage_init_for_current_process(struct aws_memory_usage_info *memo
memory_usage->rss = (size_t)info.resident_size;

#else
FILE* statm = aws_fopen_safe(aws_string_new_from_c_str("/proc/self/statm"), 'r');
AWS_STRING_FROM_LITERAL(statm_path, "/proc/self/statm");
AWS_STRING_FROM_LITERAL(read_only, "r");
FILE* statm = aws_fopen_safe(statm_path, read_only);
if (statm == NULL) {
return aws_raise_error(AWS_ERROR_SYS_CALL_FAILURE);
}
Expand Down

0 comments on commit 6ff51bb

Please sign in to comment.