summaryrefslogtreecommitdiff
path: root/cad/magic/patches/patch-at
blob: cff921fca29573ec2eba06ff256a0c594ff033f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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);