1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00

Fix build on -current (don't mis-declare sys_nerr)

This commit is contained in:
Kris Kennaway 2002-11-18 09:25:13 +00:00
parent 8a7ffd23bc
commit 29250ed861
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=70383
2 changed files with 23 additions and 12 deletions

View File

@ -0,0 +1,12 @@
--- ./sources/log.c.orig Mon Nov 18 01:25:37 2002
+++ ./sources/log.c Mon Nov 18 01:25:43 2002
@@ -81,8 +81,8 @@
extern char *initial_logfile_name;
extern Display *display;
extern int print_password_in_debug;
-extern int sys_nerr;
#if !defined(__FreeBSD__) && !defined(__MACHTEN_PPC__)
+extern int sys_nerr;
extern char *sys_errlist[];
#endif

View File

@ -1,12 +1,11 @@
*** common/str.c.orig Wed Jul 31 18:04:12 1996
--- common/str.c Wed Jul 31 18:04:27 1996
***************
*** 283,289 ****
char *str_error(int errnum)
{
extern int sys_nerr;
- extern char *sys_errlist[];
static char ebuf[40]; /* 64-bit number + slop */
if ((unsigned int)errnum < sys_nerr)
--- 283,288 ----
--- ./common/str.c.orig Tue May 9 01:06:46 1995
+++ ./common/str.c Mon Nov 18 01:23:20 2002
@@ -282,8 +282,6 @@
---------------------------------------------------------------------------*/
char *str_error(int errnum)
{
- extern int sys_nerr;
- extern char *sys_errlist[];
static char ebuf[40]; /* 64-bit number + slop */
if ((unsigned int)errnum < sys_nerr)