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 # define SUPPORT_COMPRESSED_DEBUG_LINE # endif