Blame SOURCES/2003-undef-ARRAY_SIZE.patch

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