Blame SOURCES/2003-undef-ARRAY_SIZE.patch

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