summaryrefslogtreecommitdiff
path: root/cad/magic/patches/patch-at
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2006-01-06 18:14:06 +0000
committerjoerg <joerg@pkgsrc.org>2006-01-06 18:14:06 +0000
commit4c6761827056cfecef1f116d7ad06dd794a71c8b (patch)
tree42ed76dd588136d9328eb66740cdfe45cb97a118 /cad/magic/patches/patch-at
parentd66e28a8c5c4ae564957e2dbbda168ad5e961c66 (diff)
downloadpkgsrc-4c6761827056cfecef1f116d7ad06dd794a71c8b.tar.gz
Fix errno. Fix implicit prototype mismatches. Add DragnFly support.
On DragonFly, just fetch using the macros, e.g. using the slow path. Use pkgsrc readline instead of local version. Bump revision.
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);
+