aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/unroff
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2002-12-02 08:13:13 +0800
committerkris <kris@FreeBSD.org>2002-12-02 08:13:13 +0800
commitcb8375b1aebba2b0a76f71654e3b5a632a74cbd1 (patch)
tree14f5844fdbccb18e325bdebfa6707027fdd23d5b /textproc/unroff
parent865d9721b0efa843f83d8ca18139173b39e5c408 (diff)
downloadfreebsd-ports-gnome-cb8375b1aebba2b0a76f71654e3b5a632a74cbd1.tar.gz
freebsd-ports-gnome-cb8375b1aebba2b0a76f71654e3b5a632a74cbd1.tar.zst
freebsd-ports-gnome-cb8375b1aebba2b0a76f71654e3b5a632a74cbd1.zip
Fix build on 5.0 (remove bogus declaration of sys_nerr)
Diffstat (limited to 'textproc/unroff')
-rw-r--r--textproc/unroff/files/patch-b28
1 files changed, 13 insertions, 15 deletions
diff --git a/textproc/unroff/files/patch-b b/textproc/unroff/files/patch-b
index d846348ec27b..e3d523a72ded 100644
--- a/textproc/unroff/files/patch-b
+++ b/textproc/unroff/files/patch-b
@@ -1,15 +1,13 @@
-diff -cr unroff-1.0.orig/src/error.c unroff-1.0/src/error.c
-*** unroff-1.0.orig/src/error.c Fri Jun 2 15:16:00 1995
---- unroff-1.0/src/error.c Mon Feb 12 18:53:17 1996
-***************
-*** 39,45 ****
---- 39,47 ----
-
- static char *strerr(void) {
- extern int sys_nerr;
-+ #ifndef BSD
- extern char *sys_errlist[];
-+ #endif
-
- return errno > 0 && errno < sys_nerr ?
- sys_errlist[errno] : "unknown error";
+--- ./src/error.c.orig Fri Jun 2 06:16:00 1995
++++ ./src/error.c Sun Dec 1 16:16:18 2002
+@@ -38,8 +38,10 @@
+ }
+
+ static char *strerr(void) {
++#ifndef BSD
+ extern int sys_nerr;
+ extern char *sys_errlist[];
++#endif
+
+ return errno > 0 && errno < sys_nerr ?
+ sys_errlist[errno] : "unknown error";