commit 012c462a4da9acd270ab76e4871f5d0d265d2ab9
Author: Petr Machata <pmachata(a)redhat.com>
Date: Thu Jan 31 23:11:23 2013 +0100
Actually add the patch
ltrace-0.7.2-unused-typedef.patch | 24 ++++++++++++++++++++++++
1 files changed, 24 insertions(+), 0 deletions(-)
---
diff --git a/ltrace-0.7.2-unused-typedef.patch b/ltrace-0.7.2-unused-typedef.patch
new file mode 100644
index 0000000..a5f5a82
--- /dev/null
+++ b/ltrace-0.7.2-unused-typedef.patch
@@ -0,0 +1,24 @@
+diff --git a/value.c b/value.c
+index d18db17..b98298e 100644
+--- a/value.c
++++ b/value.c
+@@ -1,6 +1,6 @@
+ /*
+ * This file is part of ltrace.
+- * Copyright (C) 2011,2012 Petr Machata, Red Hat Inc.
++ * Copyright (C) 2011,2012,2013 Petr Machata, Red Hat Inc.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+@@ -282,9 +282,9 @@ value_init_deref(struct value *ret_val, struct value *valp)
+ if (value_extract_word(valp, &l, NULL) < 0)
+ return -1;
+
+- /* We need "long" to be long enough to hold platform
++ /* We need "long" to be long enough to hold target
+ * pointers. */
+- typedef char assert__long_enough_long[-(sizeof(l) < sizeof(void *))];
++ assert(sizeof(l) >= sizeof(arch_addr_t));
+
+ value_common_init(ret_val, valp->inferior, valp,
+ valp->type->u.ptr_info.info, 0);
Show replies by date