aboutsummaryrefslogtreecommitdiffstats
path: root/addr2line.c
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-08-13 19:12:23 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-08-13 19:12:23 +0000
commitfa66e11650a4b3ac4ab3b621630089540576d0b6 (patch)
treeb2a01348ebea58f5fbc9a85965b750c8c44c518d /addr2line.c
parent4435b91fc56eceb1931e3a14fac63ca679178b38 (diff)
downloadruby-fa66e11650a4b3ac4ab3b621630089540576d0b6.tar.gz
FreeBSD 11.0 lacks ELFCOMPRESS_ZLIB
FreeBSD 11.0 unfortunately lacks ELF compression definitions in their elf.h (sys/elf_common.h), and 11.1 introduced them. https://github.com/freebsd/freebsd/commit/b9167d33a12b8a6c279be9cd1005874728e808c9 Though we can add workaround, we simply drop support because FreeBSD 11.0 is already EOL at November 30, 2017. https://www.freebsd.org/security/unsupported.html git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64351 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'addr2line.c')
-rw-r--r--addr2line.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/addr2line.c b/addr2line.c
index 2a13c5ded6..2c422cc169 100644
--- a/addr2line.c
+++ b/addr2line.c
@@ -102,7 +102,8 @@ void *alloca();
#endif
#ifdef SHF_COMPRESSED
-# ifdef HAVE_LIBZ
+# if defined(ELFCOMPRESS_ZLIB) && defined(HAVE_LIBZ)
+ /* FreeBSD 11.0 lacks ELFCOMPRESS_ZLIB */
# include <zlib.h>
# define SUPPORT_COMPRESSED_DEBUG_LINE
# endif