Skip to content

Commit

Permalink
addr2line: DragonFlyBSD build update.
Browse files Browse the repository at this point in the history
same code path as FreeBSD's.
  • Loading branch information
devnexen authored and hsbt committed Aug 31, 2021
1 parent 9b188ac commit 3ffca65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addr2line.c
Expand Up @@ -2187,7 +2187,7 @@ fill_lines(int num_traces, void **traces, int check_debuglink,
#endif

#define HAVE_MAIN_EXE_PATH
#if defined(__FreeBSD__)
#if defined(__FreeBSD__) || defined(__DragonFly__)
# include <sys/sysctl.h>
#endif
/* ssize_t main_exe_path(void)
Expand All @@ -2210,7 +2210,7 @@ main_exe_path(void)
binary_filename[len] = 0;
return len;
}
#elif defined(__FreeBSD__)
#elif defined(__FreeBSD__) || defined(__DragonFly__)
static ssize_t
main_exe_path(void)
{
Expand Down

0 comments on commit 3ffca65

Please sign in to comment.