summaryrefslogtreecommitdiffstats
path: root/dwflpp.h
diff options
context:
space:
mode:
authorDave Brolley <brolley@redhat.com>2009-06-23 11:07:15 -0400
committerDave Brolley <brolley@redhat.com>2009-06-23 11:07:15 -0400
commitf75b6811dee35832309e55a9e3455c40d4c13437 (patch)
treea4b0c9bab84c84c863b99bb993fcbb7f5c19b339 /dwflpp.h
parentd6454850dd3c9d74b700924b56378c4c9ab9fa57 (diff)
parente89118955d1e9f6f442e9c0f2e918ce9bf9a8529 (diff)
downloadsystemtap-steved-f75b6811dee35832309e55a9e3455c40d4c13437.tar.gz
systemtap-steved-f75b6811dee35832309e55a9e3455c40d4c13437.tar.xz
systemtap-steved-f75b6811dee35832309e55a9e3455c40d4c13437.zip
Merge branch 'master' of git://sources.redhat.com/git/systemtap
Diffstat (limited to 'dwflpp.h')
-rw-r--r--dwflpp.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/dwflpp.h b/dwflpp.h
index 9cd2cb59..ec2fc2b9 100644
--- a/dwflpp.h
+++ b/dwflpp.h
@@ -25,6 +25,16 @@
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
+#else
+ // Really old elfutils version, definitely redefine to use old name.
+ #define elf_getshdrstrndx elf_getshstrndx
+#endif
#include <regex.h>
}