Blame SOURCES/2003-undef-ARRAY_SIZE.patch

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