summaryrefslogtreecommitdiff
path: root/cad/pcb
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2006-01-05 15:55:26 +0000
committerjoerg <joerg@pkgsrc.org>2006-01-05 15:55:26 +0000
commitcee3a6a417cc3f9453701c1e5859ea38e51c5f82 (patch)
tree10e37c8aa009d174eb468befaab14bfc7fe34525 /cad/pcb
parent9378d0d76db6c5b68f3db5b2cb4195a57bd72e7d (diff)
downloadpkgsrc-cee3a6a417cc3f9453701c1e5859ea38e51c5f82.tar.gz
Fix errno, don't declare sys_errlist on DragonFly as well.
Diffstat (limited to 'cad/pcb')
-rw-r--r--cad/pcb/distinfo3
-rw-r--r--cad/pcb/patches/patch-ab21
2 files changed, 23 insertions, 1 deletions
diff --git a/cad/pcb/distinfo b/cad/pcb/distinfo
index 032f3b7d115..a8e8b5ab5d8 100644
--- a/cad/pcb/distinfo
+++ b/cad/pcb/distinfo
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.8 2005/12/03 04:18:59 dmcmahill Exp $
+$NetBSD: distinfo,v 1.9 2006/01/05 15:55:26 joerg Exp $
SHA1 (pcb-20050609.tar.gz) = 5c6c47d36c6c3398c1410a8c5cf0c008b294e4c5
RMD160 (pcb-20050609.tar.gz) = 4296b437a46e8a331cf773f29749b2bb8f8cb6ad
Size (pcb-20050609.tar.gz) = 2371793 bytes
SHA1 (patch-aa) = 3d31486ff101a2ab7698209e325ee85c9630a399
+SHA1 (patch-ab) = 1cdced6e0b60dc3e15ed571564c935c39ebde4a4
diff --git a/cad/pcb/patches/patch-ab b/cad/pcb/patches/patch-ab
new file mode 100644
index 00000000000..eee7bf9ba51
--- /dev/null
+++ b/cad/pcb/patches/patch-ab
@@ -0,0 +1,21 @@
+$NetBSD: patch-ab,v 1.5 2006/01/05 15:55:26 joerg Exp $
+
+--- src/error.c.orig 2006-01-05 15:49:45.000000000 +0000
++++ src/error.c
+@@ -66,7 +66,6 @@ RCSID("$Id: error.c,v 1.8 2005/03/12 02:
+ /* ----------------------------------------------------------------------
+ * some external identifiers
+ */
+-extern int errno; /* system error code */
+
+ #if !defined(HAVE_STRERROR)
+ extern int sys_nerr; /* number of messages available from array */
+@@ -74,7 +73,7 @@ extern int sys_nerr; /* number of messa
+ #endif
+
+ /* the list is already defined for some OS */
+-#if !defined(__NetBSD__) && !defined(__FreeBSD__) && !defined(__linux__)
++#if !defined(__NetBSD__) && !defined(__FreeBSD__) && !defined(__linux__) && !defined(__DragonFly__)
+ #ifdef USE_SYS_ERRLIST
+ extern char *sys_errlist[]; /* array of error messages */
+ #endif