summaryrefslogtreecommitdiff
path: root/print/cups/patches
diff options
context:
space:
mode:
authorjmc <jmc>2001-12-09 10:55:44 +0000
committerjmc <jmc>2001-12-09 10:55:44 +0000
commite17f5b2661950af65e2058744960527f4d55cd30 (patch)
tree48299fc8e4d8cf684c038ae68934b70fc2f16eba /print/cups/patches
parent58cf5f109ad4f971a3f95b1115c82abf2a1816b8 (diff)
downloadpkgsrc-e17f5b2661950af65e2058744960527f4d55cd30.tar.gz
Assembler on 1.5.2 or below macppc can't handle some parts in genarch. Patch around that
Diffstat (limited to 'print/cups/patches')
-rw-r--r--print/cups/patches/patch-ah21
1 files changed, 21 insertions, 0 deletions
diff --git a/print/cups/patches/patch-ah b/print/cups/patches/patch-ah
new file mode 100644
index 00000000000..66eed4987ab
--- /dev/null
+++ b/print/cups/patches/patch-ah
@@ -0,0 +1,21 @@
+$NetBSD: patch-ah,v 1.11 2001/12/09 10:55:44 jmc Exp $
+
+--- pstoraster/genarch.c.orig Wed Mar 8 23:14:26 2000
++++ pstoraster/genarch.c Sun Dec 9 10:51:28 2001
+@@ -154,7 +154,16 @@
+ /* Some machines can't handle a variable shift by */
+ /* the full width of a long. */
+ fprintf(f, "#define arch_can_shift_full_long %d\n",
++#ifdef __NetBSD__
++#include <sys/param.h>
++#if (MACHINE_ARCH = "powerpc") && (__NetBSD_Version__ <= 105000200)
++ (um1 >> (lwidth / 2)) >> (lwidth / 2) == 0);
++#else
+ um1 >> lwidth == 0);
++#endif
++#else
++ um1 >> lwidth == 0);
++#endif
+
+ /* ---------------- Done. ---------------- */
+