diff options
author | Frank Ch. Eigler <fche@elastic.org> | 2009-08-23 18:15:01 -0400 |
---|---|---|
committer | Frank Ch. Eigler <fche@elastic.org> | 2009-08-23 18:15:01 -0400 |
commit | 55d8c5d4673f74a3ec2865593524d5f40dfcac0c (patch) | |
tree | 579f228efcb13494e078bd923262a425be6d8922 /loc2c.c | |
parent | 9c11995121a80bb6f97af1a2cb1fe71ad06b67a9 (diff) | |
download | systemtap-steved-55d8c5d4673f74a3ec2865593524d5f40dfcac0c.tar.gz systemtap-steved-55d8c5d4673f74a3ec2865593524d5f40dfcac0c.tar.xz systemtap-steved-55d8c5d4673f74a3ec2865593524d5f40dfcac0c.zip |
build fix: make buildable with elfutils < 0.142
* dwarf_wrappers.h, loc2c.c: Define DW_TAG_rvalue_reference_type=0x42
for older elfutils.
Diffstat (limited to 'loc2c.c')
-rw-r--r-- | loc2c.c | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -10,6 +10,22 @@ #include <assert.h> #include "loc2c.h" +#include "config.h" + +#include <elfutils/libdw.h> +#ifdef HAVE_ELFUTILS_VERSION_H +#include <elfutils/version.h> +#endif + +#if !defined(_ELFUTILS_PREREQ) +// make a dummy PREREQ check for elfutils < 0.138 +#define _ELFUTILS_PREREQ(major, minor) (0 >= 1) +#endif + +#if ! _ELFUTILS_PREREQ(0,142) +#define DW_TAG_rvalue_reference_type 0x42 +#endif + #define N_(x) x #define STACK_TYPE "intptr_t" /* Must be the signed type. */ |