summaryrefslogtreecommitdiffstats
path: root/loc2c.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>2009-09-17 20:55:10 -0700
committerRoland McGrath <roland@redhat.com>2009-09-17 20:55:10 -0700
commitbb5ba1d9bf1e83de32ea2da4975d4958e366c3da (patch)
treedde816cc81336fcb1248d960e8372f29cf91bd98 /loc2c.c
parentc9a8b3ed6f7a91e4edaf7dcd48a83121bd4ac991 (diff)
downloadsystemtap-steved-bb5ba1d9bf1e83de32ea2da4975d4958e366c3da.tar.gz
systemtap-steved-bb5ba1d9bf1e83de32ea2da4975d4958e366c3da.tar.xz
systemtap-steved-bb5ba1d9bf1e83de32ea2da4975d4958e366c3da.zip
Fix build error with elfutils < 0.142.
* loc2c.c [!_ELFUTILS_PREREQ (0,142)] (DW_OP_stack_value, DW_OP_implicit_value): Define as macros.
Diffstat (limited to 'loc2c.c')
-rw-r--r--loc2c.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/loc2c.c b/loc2c.c
index ce5979b9..c27242fa 100644
--- a/loc2c.c
+++ b/loc2c.c
@@ -22,8 +22,10 @@
#define _ELFUTILS_PREREQ(major, minor) (0 >= 1)
#endif
-#if ! _ELFUTILS_PREREQ(0,142)
-#define DW_TAG_rvalue_reference_type 0x42
+#if !_ELFUTILS_PREREQ (0,142)
+#define DW_TAG_rvalue_reference_type 0x42
+#define DW_OP_implicit_value 0x9e
+#define DW_OP_stack_value 0x9f
#endif
#define N_(x) x