blob: 1c7ca110524fe01cefe44e2325ebb70f37a019ba (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
$NetBSD: patch-ag,v 1.2 2010/03/03 03:40:00 dmcmahill Exp $
--- utils/getrect.c.orig 2006-11-02 23:44:07.000000000 +0000
+++ utils/getrect.c
@@ -97,6 +97,7 @@ GetRect(fin, skip, rect, scalen, scaled)
int dir = 0x1;
#endif
+#if !defined(__DragonFly__)
if (FILE_CNT(fin) < RECTBUFTHRESHOLD) goto slow;
/*
* Fast version of GetRect -- read directly from buffer.
@@ -178,6 +179,9 @@ fastbad:
/* Slow version of GetRect -- read via getc */
slow:
+
+#endif /* __DragonFly__ */
+
while (skip-- > 0)
(void) getc(fin);
|