diff options
author | kris <kris@FreeBSD.org> | 2003-01-12 11:13:24 +0800 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2003-01-12 11:13:24 +0800 |
commit | cefae85f96b52288793c8f5027eaff6422e04b9d (patch) | |
tree | 85624ec6e346a25987103c864c773c4108fdc6da /cad/pcb | |
parent | c0cb81623608e9fda53f9396004483a23e16c149 (diff) | |
download | freebsd-ports-gnome-cefae85f96b52288793c8f5027eaff6422e04b9d.tar.gz freebsd-ports-gnome-cefae85f96b52288793c8f5027eaff6422e04b9d.tar.zst freebsd-ports-gnome-cefae85f96b52288793c8f5027eaff6422e04b9d.zip |
Fix build on -current (don't define sys_nerr)
Diffstat (limited to 'cad/pcb')
-rw-r--r-- | cad/pcb/files/patch-af | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/cad/pcb/files/patch-af b/cad/pcb/files/patch-af new file mode 100644 index 000000000000..a2017795c69a --- /dev/null +++ b/cad/pcb/files/patch-af @@ -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 + |