summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--addr2line.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/addr2line.c b/addr2line.c
index 2a13c5d..2c422cc 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