summaryrefslogtreecommitdiffstats
path: root/dwflpp.h
diff options
context:
space:
mode:
Diffstat (limited to 'dwflpp.h')
-rw-r--r--dwflpp.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/dwflpp.h b/dwflpp.h
index 9cd2cb59..7260c417 100644
--- a/dwflpp.h
+++ b/dwflpp.h
@@ -25,6 +25,13 @@
extern "C" {
#include <elfutils/libdwfl.h>
+#ifdef HAVE_ELFUTILS_VERSION_H
+ #include <elfutils/version.h>
+ #if !_ELFUTILS_PREREQ(0,142)
+ // Always use newer name, old name is deprecated in 0.142.
+ #define elf_getshdrstrndx elf_getshstrndx
+ #endif
+#endif
#include <regex.h>
}