summaryrefslogtreecommitdiffstats
path: root/dwflpp.h
diff options
context:
space:
mode:
authorMark Wielaard <mjw@redhat.com>2009-06-23 10:32:10 +0200
committerMark Wielaard <mjw@redhat.com>2009-06-23 10:32:10 +0200
commite89118955d1e9f6f442e9c0f2e918ce9bf9a8529 (patch)
tree26d0319ed2df672d120ed2961a00636e04f01a99 /dwflpp.h
parentfcc30d6d020ebf1df7d05809074015c8f0990c22 (diff)
downloadsystemtap-steved-e89118955d1e9f6f442e9c0f2e918ce9bf9a8529.tar.gz
systemtap-steved-e89118955d1e9f6f442e9c0f2e918ce9bf9a8529.tar.xz
systemtap-steved-e89118955d1e9f6f442e9c0f2e918ce9bf9a8529.zip
PR 10313 Build error due to deprecation of elf_getshstrndx in elfutils (old)
Really old versions of elfutils didn't have version.h, but we still want to support them. So add workaround also for that case. * dwflpp.h: Define elf_getshdrstrndx as elf_getshstrndx also for really old elfutils versions.
Diffstat (limited to 'dwflpp.h')
-rw-r--r--dwflpp.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/dwflpp.h b/dwflpp.h
index 7260c417..ec2fc2b9 100644
--- a/dwflpp.h
+++ b/dwflpp.h
@@ -31,6 +31,9 @@ extern "C" {
// 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>
}