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:
parent
8a7ffd23bc
commit
29250ed861
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=70383
12
ftp/llnlxftp/files/patch-ab
Normal file
12
ftp/llnlxftp/files/patch-ab
Normal 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
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user