diff options
author | joerg <joerg@pkgsrc.org> | 2006-01-05 15:55:26 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2006-01-05 15:55:26 +0000 |
commit | cee3a6a417cc3f9453701c1e5859ea38e51c5f82 (patch) | |
tree | 10e37c8aa009d174eb468befaab14bfc7fe34525 /cad/pcb/patches | |
parent | 9378d0d76db6c5b68f3db5b2cb4195a57bd72e7d (diff) | |
download | pkgsrc-cee3a6a417cc3f9453701c1e5859ea38e51c5f82.tar.gz |
Fix errno, don't declare sys_errlist on DragonFly as well.
Diffstat (limited to 'cad/pcb/patches')
-rw-r--r-- | cad/pcb/patches/patch-ab | 21 |
1 files changed, 21 insertions, 0 deletions
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 |