mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
Fix build on -current (don't define sys_nerr)
This commit is contained in:
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
16
cad/pcb/files/patch-af
Normal 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
|
||||
|
Loading…
Reference in New Issue
Block a user