mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
Fix build on 5.0 (remove bogus declaration of sys_nerr)
This commit is contained in:
parent
2b201eb1a6
commit
9a6b4c098e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=71287
12
ftp/llnlxdir/files/patch-ab
Normal file
12
ftp/llnlxdir/files/patch-ab
Normal file
@ -0,0 +1,12 @@
|
||||
--- diag.c.orig Sun Dec 1 16:11:28 2002
|
||||
+++ diag.c Sun Dec 1 16:11:33 2002
|
||||
@@ -125,8 +125,8 @@
|
||||
extern struct st_host_info hinfo[];
|
||||
extern int initial_diagnostics;
|
||||
extern int screen;
|
||||
-extern int sys_nerr;
|
||||
#if !defined(__FreeBSD__) && !defined(__NetBSD__) && !defined(__GNU_LIBRARY__) && !defined(__GLIBC__) && !defined(__EMX__)
|
||||
+extern int sys_nerr;
|
||||
extern char *sys_errlist[];
|
||||
#endif
|
||||
|
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user