summaryrefslogtreecommitdiff
path: root/cad/magic/patches/patch-at
diff options
context:
space:
mode:
Diffstat (limited to 'cad/magic/patches/patch-at')
-rw-r--r--cad/magic/patches/patch-at21
1 files changed, 21 insertions, 0 deletions
diff --git a/cad/magic/patches/patch-at b/cad/magic/patches/patch-at
new file mode 100644
index 00000000000..cff921fca29
--- /dev/null
+++ b/cad/magic/patches/patch-at
@@ -0,0 +1,21 @@
+$NetBSD: patch-at,v 1.1 2006/01/06 18:14:06 joerg Exp $
+
+--- utils/getrect.c.orig 2005-12-20 16:47:57.000000000 +0000
++++ utils/getrect.c
+@@ -92,6 +92,7 @@ GetRect(fin, skip, rect)
+ register dir = 0x1;
+ #endif
+
++#if !defined(__DragonFly__)
+ if (FILE_CNT(fin) < RECTBUFTHRESHOLD) goto slow;
+ /*
+ * Fast version of GetRect -- read directly from buffer.
+@@ -158,6 +159,8 @@ fastbad:
+
+ /* Slow version of GetRect -- read via getc */
+ slow:
++
++#endif /* __DragonFly__ */
+ while (skip-- > 0)
+ (void) getc(fin);
+