ruby-changes:67507
From: David <ko1@a...>
Date: Tue, 31 Aug 2021 20:53:11 +0900 (JST)
Subject: [ruby-changes:67507] 3ffca65047 (master): addr2line: DragonFlyBSD build update.
https://git.ruby-lang.org/ruby.git/commit/?id=3ffca65047 From 3ffca65047d67cd958a424ba6dcc55112cc39e0a Mon Sep 17 00:00:00 2001 From: David CARLIER <devnexen@g...> Date: Mon, 22 Mar 2021 18:58:33 +0000 Subject: addr2line: DragonFlyBSD build update. same code path as FreeBSD's. --- addr2line.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addr2line.c b/addr2line.c index 92c6da5..4d7b579 100644 --- a/addr2line.c +++ b/addr2line.c @@ -2187,7 +2187,7 @@ fail: https://github.com/ruby/ruby/blob/trunk/addr2line.c#L2187 #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) @@ -2210,7 +2210,7 @@ main_exe_path(void) https://github.com/ruby/ruby/blob/trunk/addr2line.c#L2210 binary_filename[len] = 0; return len; } -#elif defined(__FreeBSD__) +#elif defined(__FreeBSD__) || defined(__DragonFly__) static ssize_t main_exe_path(void) { -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/