Skip to content

Commit

Permalink
fix shared lib builds (#389)
Browse files Browse the repository at this point in the history
  • Loading branch information
graebm authored May 30, 2019
1 parent 7fa4dc6 commit 07bcb2c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion include/aws/common/assert.inl
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@

AWS_EXTERN_C_BEGIN

AWS_DECLSPEC_NORETURN void aws_fatal_assert(const char *cond_str, const char *file, int line) AWS_ATTRIBUTE_NORETURN;
AWS_COMMON_API
AWS_DECLSPEC_NORETURN
void aws_fatal_assert(const char *cond_str, const char *file, int line) AWS_ATTRIBUTE_NORETURN;

AWS_COMMON_API
void aws_debug_break(void);
Expand Down
3 changes: 2 additions & 1 deletion source/posix/system_info.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,9 @@ int s_parse_symbol(const char *symbol, void *addr, struct aws_stack_frame_info *
const char *current_exe = s_get_executable_path();
/* parse exe/shared lib */
const char *exe_start = strstr(symbol, " ");
while (isspace(*exe_start))
while (isspace(*exe_start)) {
++exe_start;
}
const char *exe_end = strstr(exe_start, " ");
strncpy(frame->exe, exe_start, exe_end - exe_start);
/* executables get basename'd, so restore the path */
Expand Down

0 comments on commit 07bcb2c

Please sign in to comment.