From 0fa8e9d41b8c4203ad0e119f364f56e6df2ccbc3 Mon Sep 17 00:00:00 2001 From: joerg Date: Thu, 5 Jan 2006 15:55:26 +0000 Subject: Fix errno, don't declare sys_errlist on DragonFly as well. --- cad/pcb/distinfo | 3 ++- cad/pcb/patches/patch-ab | 21 +++++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 cad/pcb/patches/patch-ab (limited to 'cad/pcb') 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 -- cgit v1.2.3