Blame SOURCES/2003-undef-ARRAY_SIZE.patch

0e3ee4
Index: strace-5.12/src/unwind.c
0e3ee4
===================================================================
0e3ee4
--- strace-5.12.orig/src/unwind.c	2018-12-10 01:00:00.000000000 +0100
0e3ee4
+++ strace-5.12/src/unwind.c	2020-06-02 11:13:42.777871147 +0200
0e3ee4
@@ -9,6 +9,12 @@
0e3ee4
 #include "unwind.h"
0e3ee4
 
0e3ee4
 #ifdef USE_DEMANGLE
0e3ee4
+/*
0e3ee4
+ * demangle.h defines ARRAY_SIZE without proper guard, and its definition
0e3ee4
+ * is "good enough" for us.
0e3ee4
+ */
0e3ee4
+#undef ARRAY_SIZE
0e3ee4
+
0e3ee4
 # if defined HAVE_DEMANGLE_H
0e3ee4
 #  include <demangle.h>
0e3ee4
 # elif defined HAVE_LIBIBERTY_DEMANGLE_H