From e89118955d1e9f6f442e9c0f2e918ce9bf9a8529 Mon Sep 17 00:00:00 2001 From: Mark Wielaard Date: Tue, 23 Jun 2009 10:32:10 +0200 Subject: 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. --- dwflpp.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'dwflpp.h') 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 } -- cgit