Blame SOURCES/2003-undef-ARRAY_SIZE.patch

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