aboutsummaryrefslogtreecommitdiffstats
path: root/testing/gutenprint/pagesize-name-clash.patch
diff options
context:
space:
mode:
Diffstat (limited to 'testing/gutenprint/pagesize-name-clash.patch')
-rw-r--r--testing/gutenprint/pagesize-name-clash.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/testing/gutenprint/pagesize-name-clash.patch b/testing/gutenprint/pagesize-name-clash.patch
new file mode 100644
index 000000000..932ae2da0
--- /dev/null
+++ b/testing/gutenprint/pagesize-name-clash.patch
@@ -0,0 +1,14 @@
+diff --git a/src/testpattern/testpatterny.h b/src/testpattern/testpatterny.h
+index 010e17a..986d1d7 100644
+--- a/src/testpattern/testpatterny.h
++++ b/src/testpattern/testpatterny.h
+@@ -36,6 +36,9 @@
+ /* Tokens. */
+ #ifndef YYTOKENTYPE
+ # define YYTOKENTYPE
++#ifdef PAGESIZE
++#undef PAGESIZE
++#endif
+ /* Put the tokens into the symbol table, so that GDB and other debuggers
+ know about them. */
+ enum yytokentype {