Blame SOURCES/0203-undef-ARRAY_SIZE.patch

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