Fix build on -current (don't define sys_nerr)

This commit is contained in:
Kris Kennaway 2003-01-12 03:13:24 +00:00
parent e8b19c713b
commit a9bafdd6c4
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=72954

16
cad/pcb/files/patch-af Normal file
View file

@ -0,0 +1,16 @@
--- ./src/error.c.orig Sat Jan 11 19:09:35 2003
+++ ./src/error.c Sat Jan 11 19:09:54 2003
@@ -51,11 +51,11 @@
/* ----------------------------------------------------------------------
* some external identifiers
*/
-extern int errno, /* system error code */
- sys_nerr; /* number of messages available from array */
/* the list is already defined for some OS */
#if !defined(__NetBSD__) && !defined(__FreeBSD__) && !defined(__linux__)
+extern int errno, /* system error code */
+ sys_nerr; /* number of messages available from array */
extern char *sys_errlist[]; /* array of error messages */
#endif