summaryrefslogtreecommitdiff
path: root/addr2line.c
diff options
context:
space:
mode:
authorDavid CARLIER <devnexen@gmail.com>2021-03-22 18:58:33 +0000
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2021-08-31 20:52:49 +0900
commit3ffca65047d67cd958a424ba6dcc55112cc39e0a (patch)
tree6fc74547d99fea94686e0ccb828acd8f36f41ac6 /addr2line.c
parent9b188ac2385df107529a9950648f3e42ad56adc0 (diff)
addr2line: DragonFlyBSD build update.
same code path as FreeBSD's.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/4309
Diffstat (limited to 'addr2line.c')
-rw-r--r--addr2line.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/addr2line.c b/addr2line.c
index 92c6da5e3b..4d7b579d2b 100644
--- a/addr2line.c
+++ b/addr2line.c
@@ -2187,7 +2187,7 @@ fail:
#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)
binary_filename[len] = 0;
return len;
}
-#elif defined(__FreeBSD__)
+#elif defined(__FreeBSD__) || defined(__DragonFly__)
static ssize_t
main_exe_path(void)
{